2011-10-20 48 views
0

我基本上在我的简单的Rails应用程序,随后this RSpec guide工作,但是当我运行自动测试,我得到ZenTest不使用RSpec 2.7和Rails 3.1.0

$ autotest 
(Not running features. To run features in autotest, set AUTOFEATURE=true.) 
loading autotest/rails_rspec2 
bundle exec /Users/darth/.rvm/rubies/ruby-1.9.2-p290/bin/ruby -S /Users/darth/.rvm/gems/ruby-1.9.2-p290/gems/rspec-core-2.7.0/bin/rspec --tty '/Users/darth/projects/checkin/spec/models/player_spec.rb' 
/Users/darth/.rvm/rubies/ruby-1.9.2-p290/bin/ruby: No such file or directory -- /Users/darth/.rvm/gems/ruby-1.9.2-p290/gems/rspec-core-2.7.0/bin/rspec (LoadError) 

当我看着宝石目录,它看起来像有exe文件夹而不是bin

$ ls ~/.rvm/gems/ruby-1.9.2-p290/gems/rspec-core-2.7.0/ 
README.md exe  features lib  spec 

$ ls ~/.rvm/gems/ruby-1.9.2-p290/gems/rspec-core-2.7.0/exe/ 
autospec rspec 

,这是我的Gemfile

group :test, :development do 
    gem 'rspec-rails' 
end 

group :test do 
    # Pretty printed test output 
    gem 'turn', :require => false 
    gem 'rspec' 
    gem 'cucumber-rails' 
    gem 'database_cleaner' 
    gem 'webrat' 
    gem 'capybara' 
    gem 'ZenTest', '~> 4.4.2' 
    gem 'autotest-rails', '~> 4.1.0' 
end 

回答