search for: setupandteardown

Displaying 2 results from an estimated 2 matches for "setupandteardown".

Did you mean: setup_and_teardown
2007 Mar 12
10
using mocha with rspec
...ify_mocks if method_defined? :verify_mocks include Mocha::AutoVerify end end Now I have working mock(), stub() and verify_mocks(). Not sure what other Mocha stuff I''m missing yet, but I''ll let you know how I get on. I noticed that Mocha::Standalone also references Mocha::SetupAndTeardown, but I didn''t see anything in there that seemed relevant to rspec mocking. Cheers, Dan
2006 Sep 13
2
Problem with RSpec and Mocha/Stubba
I''ve recently upgraded to the latest versions of Mocha and RSpec (0.3.2 and 0.6.3 respectively) and I''m no longer able to use Mocha/ Stubba with RSpec. Its actually only Stubba I''m interested in as I use RSpec''s built-in mocking library. I require stubba in my spec file but whenever I try and run my spec it fails with the error: Unintialized constant