I'm getting an error when using shoulda and mocha together with rails
2.3.4.
My test.rb environment file has these lines:
config.gem 'test-unit', :lib => 'test/unit'
config.gem 'thoughtbot-shoulda', :lib => 'shoulda'
The error:
/usr/bin/ruby1.8 -I"lib:test" "/usr/lib/ruby/gems/1.8/gems/rake-0.8.7/
lib/rake/rake_test_loader.rb" "test/functional/
tweets_controller_test.rb"
/usr/lib/ruby/gems/1.8/gems/thoughtbot-shoulda-2.10.2/lib/shoulda/
context.rb:398:in `send': undefined method `mock' for
TweetsControllerTest:Class (NoMethodError)
Mocha is mocha-0.9.8
Shoulda is thoughtbot-shoulda-2.10.2
I saw this thread:
http://groups.google.com/group/mocha-developer/browse_thread/thread/7f3e98aa73ed425a
Which 1. doesn't appear to be active, and 2. the solutions proposed
didn't solve the issue for me.
Any help would be greatly appreciated.
-Sonny