Autotest with Rspec2 in Rails 3 Can't Find Binaries

家住魔仙堡 提交于 2019-12-04 18:54:29

I am using JRuby ( with Rails 3) and I need to put the following in my PATH to fix this issue: jruby-1.5.2/lib/ruby/gems/1.8/bin

You should do something similar for your Ruby on Rails installation.

This is how I remedied the issue:

I uninstalled all testing gems (rspec, factory_girl, webrat, etc). I then upgraded to rspec 2.0.1, uninstalled ZenTest (in favor of straight autotest). All of these installations were done outside of the bundler.

I have the following gem setup:

autotest (4.4.1)
autotest-growl (0.2.6)
factory_girl (1.3.2)
factory_girl_rails (1.0)
rspec (2.0.1)
rspec-core (2.0.1)
rspec-expectations (2.0.1)
rspec-mocks (2.0.1)
rspec-rails (2.0.1)
webrat (0.7.1)

I used the following in the Gemfile.

group :development, :test do
  gem 'rspec', '>=2.0.1'
  gem 'rspec-rails', '>=2.0.1'
  gem 'webrat'
  gem 'factory_girl_rails', '1.0'
end
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!