I prefer to use rspec than test::unit for developing my apps. However
I've found its mocking library to be pretty inflexible compared to
Mocha. This isn't really a surprise since rspec isn't intended as a
mocking framework, whereas Mocha is. So I'd like to play to both of
their strengths and use rspec as my testing/specification framework
and Mocha do to mocks.
I installed the plugins for each, and whenever I try to mock a method
with Mocha I get a nil object error at
plugins/mocha/lib/stubba/setup_and_teardown.rb at line 18. I've
looked through all the files referenced in the trace and haven't been
able to figure anything out.
Not sure if anyone else has tried to use rspec and mocha together yet.
I'd like some help from people with experience in either in getting