Closed henrik closed 13 years ago
This might happen if you have installed both rspec 2 and rspec 1. If present, steak will require rspec 2 before rspec 1.
To workaround this issue I suggest you use bundler or a rvm gemset to avoid having both rspec versions installed.
After adding steak to a Rails 2.3.10 app, running the tests gave me errors like
After poking through that stack trace, it seems the problem is that
lib/steak.rb
loads rspec 2 instead of rspec 1. This is from myenvironments/test.rb
:And this is output from
gem list rspec
:Not sure if I did something weird to get rspec-core 2 without rspec 2. It's likely I did, as it worked fine at some point and I got these errors later the same day without changing the app itself.
When I uninstalled rspec-core, the problem went away.
So this may be due to me somehow ending up in a weird state of having only parts of rspec 2 installed.