My project has this value set in the rspec_helper.rb file
mocks.verify_partial_doubles = true
I have a test that gets labeled
TaskPublisher does not implement
The problem is that this method does not exist on the object until it is created. This is a module import based on the type of task to be published. (metaprogramming)
So I'm wondering if there is a way to disable verify_partial_doubles for a particular test, but not affect the other tests that matter.
Side question: Is this flag set to true for BDD? It seems to me that he flies in the face of Mocking, as he defined ( https://stackoverflow.com/a/3/9/ ).
ruby-on-rails mocking rspec
baash05
source share