The blog has moved to http://jessehouse.com/ ... Many google searches point here so I am leaving it operational, but there will be no new posts.

Sunday, June 8, 2008

Your RSpec on Rails plugin is incompatible with your installed RSpec

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: