mocha icon indicating copy to clipboard operation
mocha copied to clipboard

More relaxed version of Mocha::Configuration.prevent(:stubbing_non_existent_method)

Open floehopper opened this issue 12 years ago • 2 comments

Add a more relaxed version of Mocha::Configuration.prevent(:stubbing_non_existent_method) as per rspec-fire and/or bogus so that mocks run as per usual in isolated tests, but check they conform to the real "interface" when run all together.

floehopper avatar Apr 15 '13 07:04 floehopper

This might mean we could set this mode as the default.

floehopper avatar Apr 15 '13 07:04 floehopper

:+1: that was what I loved the most in RSpec 3. Now I'm trying out mocha with MiniTest and I really miss it. I have to either write lots of integration tests or have brittle unit tests.

kurko avatar Nov 19 '14 13:11 kurko

This is under consideration in #149. Closing.

floehopper avatar Aug 15 '22 19:08 floehopper