just getting into rspec, after reading The Rails Way by Obie Fernandez, a very nice testing framework.
after installing the gems and plugins I ran into this error when trying to run my tests "Your RSpec on Rails plugin is incompatible with your installed RSpec"
a simple workaround, run spec from your local script directory
this one raises the error, because it is running from the ruby gems?
spec spec/models
this one does not raise the error because it is running the locally installed version
from your rails application root
script/spec spec/models
or make the output pretty
script/spec spec/models -fs
the install was as follows
gem install rspec (sudo gem install rspec, on some OS)
script/plugin install svn://rubyforge.org/var/svn/rspec/trunk/rspec
script/plugin install svn://rubyforge.org/var/svn/rspec/trunk/rspec_on_rails
.
No comments:
Post a Comment