search for: stub_space

Displaying 1 result from an estimated 1 matches for "stub_space".

Did you mean: st_space
2006 Oct 25
5
Mocha, Stubba and RSpec
...mentions: If you use traditional mocking: object = mock or the stub shortcut : object = stub(:method => :result), you run into namespace conflicts with RSpec which has top level names that do that as well. The actual error message is 1) - Stubs should work with Stubba undefined method `stub_space'' for #<Spec::Runner::Specification:0xb76bd4d4> 2) - Mocks should work with Mocha ArgumentError in ''Mocks should work with Mocha'' wrong number of arguments (0 for 1) I could not get alias to work (but didn''t try alias_method yet,) so I just commented out t...