0

我基本上在我的简单 Rails 应用程序上遵循了这个 RSpec 指南,但是当我运行自动测试时,我得到了

$ 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)

当我查看 gem 目录时,看起来有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
4

1 回答 1

1

https://github.com/rspec/rspec-core/issues/478

于 2011-10-20T11:52:59.873 回答