-
Notifications
You must be signed in to change notification settings - Fork 34
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
undefined method `validate' for Promiscuous::Publisher:Module (NoMethodError) #71
Comments
To be fair I'm not sure I even need this. I was giving this a try because my database_cleaner.rb support file was failing, which I seem to have resolved by wrapping some of the statements with For example: # spec/support/database_cleaner.rb
RSpec.configure do |config|
config.before(:suite) do
Promiscuous.without_promiscuous { DatabaseCleaner.clean_with(:truncation) }
end
config.before(:each) do
DatabaseCleaner.strategy = :transaction
end
config.before(:each, :js => true) do
DatabaseCleaner.strategy = :truncation
end
config.before(:each) do
Promiscuous.without_promiscuous { DatabaseCleaner.start }
end
config.after(:each) do
Promiscuous.without_promiscuous { DatabaseCleaner.clean }
end
end |
Validate isn't supported. This may be due to outdated documentation. Where did you see an example of this method being used? |
It was just in the documentation. When using the test mocks do we just include the generated mock file? Thanks for your response. |
Yes, exactly. You just include the mock file and then you can simulate publish events in your tests. |
OK, thanks for the verification. |
I receive this error when using
Promiscuous::Publisher.validate('generated_mocks.rb')
inrails_helper.rb
.Maybe I'm missing something obvious but I tried searching the report for
validate
with no matching results.Oh, and I'm using it with ActiveRecord.
The text was updated successfully, but these errors were encountered: