Displaying 1 result from an estimated 1 matches for "verify_mocks_for_rspec".
2008 May 05
0
Do message expectations work in story steps?
...expectation in a story step, and couldn''t get it to fail.
Looking at what he was doing, it didn''t look to me that it would ever
succeed, which got me thinking.
Message expectations are implemented in rspec by asking the mock
framework to verify them after each example by calling
verify_mocks_for_rspec.
This seems to be the only place where this is called, so I''ve got my
doubts that message expectations ever get verified when a story is
run.
Now, it''s not clear just when in a story a message expectation should
be tested, and it''s probably the case that they shouldn...