내 shoulda 보석을 3.4.0으로 업그레이드 한 후에 테스트가 더 이상 실행되지 않습니다.RSpec 및 Ruby on Rails에서 오류가 발생합니다.
상황 :
- 루비 1.9.3-p392
- 레일 3.2.12
- RSpec에 2.13.0 맥
- OS X 10.8.3
내가 설정 내 Gemfile을 올리고 실행하십시오 bundle exec rspec spec
다음 오류가 발생합니다 :
오류 : gems/activesupport-3.2.13/lib/active_support/dependencies.rb:251:in `require': cannot load such file -- rspec (LoadError)
#Gemfile #2
group :test do
gem 'factory_girl_rails', '4.2.1'
gem 'rspec-rails', '2.13.0'
gem 'shoulda-matchers', '1.5.0'
end
오류 : gems/activesupport-3.2.13/lib/active_support/dependencies.rb:251:in `require': cannot load such file -- rspec (LoadError)
#Gemfile #3
group :test do
gem 'factory_girl_rails', '4.2.1'
gem 'rspec', '2.13.0'
gem 'shoulda', '3.4.0'
end
오류 : /gems/activesupport-3.2.13/lib/active_support/dependencies.rb:251:in `require': cannot load such file -- rspec/rails (LoadError)
이 작동하는 유일한 Gemfile 버전,하지만 그들은 올바른 일을하지 않는 것 설정 :
#Gemfile #4
group :test do
gem 'factory_girl_rails', '4.2.1'
gem 'rspec', '2.13.0'
gem 'rspec-rails', '2.13.0'
gem 'shoulda-matchers', '1.5.0'
end
#Gemfile #5
group :test do
gem 'factory_girl_rails', '4.2.1'
gem 'rspec', '2.13.0'
gem 'rspec-rails', '2.13.0'
gem 'shoulda', '3.4.0'
end
(일반) 전체 오류 추적
예 :
/Users/wrburgess/.rvm/gems/[email protected]/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:251:in `require': cannot load such file -- rspec (LoadError)
from /Users/wrburgess/.rvm/gems/[email protected]/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:251:in `block in require'
from /Users/wrburgess/.rvm/gems/[email protected]/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:236:in `load_dependency'
from /Users/wrburgess/.rvm/gems/[email protected]/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:251:in `require'
from /Users/wrburgess/.rvm/gems/[email protected]/gems/shoulda-matchers-1.5.0/lib/shoulda/matchers/integrations/rspec.rb:2:in `<top (required)>'
from /Users/wrburgess/.rvm/gems/[email protected]/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:251:in `require'
from /Users/wrburgess/.rvm/gems/[email protected]/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:251:in `block in require'
from /Users/wrburgess/.rvm/gems/[email protected]/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:236:in `load_dependency'
from /Users/wrburgess/.rvm/gems/[email protected]/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:251:in `require'
from /Users/wrburgess/.rvm/gems/[email protected]/gems/shoulda-matchers-1.5.0/lib/shoulda/matchers.rb:5:in `<top (required)>'
from /Users/wrburgess/.rvm/gems/[email protected]/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:251:in `require'
from /Users/wrburgess/.rvm/gems/[email protected]/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:251:in `block in require'
from /Users/wrburgess/.rvm/gems/[email protected]/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:236:in `load_dependency'
from /Users/wrburgess/.rvm/gems/[email protected]/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:251:in `require'
from /Users/wrburgess/.rvm/gems/[email protected]/gems/shoulda-matchers-1.5.0/lib/shoulda-matchers.rb:1:in `<top (required)>'
from /Users/wrburgess/.rvm/gems/[email protected]/gems/bundler-1.3.4/lib/bundler/runtime.rb:72:in `require'
from /Users/wrburgess/.rvm/gems/[email protected]/gems/bundler-1.3.4/lib/bundler/runtime.rb:72:in `block (2 levels) in require'
from /Users/wrburgess/.rvm/gems/[email protected]/gems/bundler-1.3.4/lib/bundler/runtime.rb:70:in `each'
from /Users/wrburgess/.rvm/gems/[email protected]/gems/bundler-1.3.4/lib/bundler/runtime.rb:70:in `block in require'
from /Users/wrburgess/.rvm/gems/[email protected]/gems/bundler-1.3.4/lib/bundler/runtime.rb:59:in `each'
from /Users/wrburgess/.rvm/gems/[email protected]/gems/bundler-1.3.4/lib/bundler/runtime.rb:59:in `require'
from /Users/wrburgess/.rvm/gems/[email protected]/gems/bundler-1.3.4/lib/bundler.rb:132:in `require'
from /Users/wrburgess/dev/jbrb/league-server/config/application.rb:8:in `<top (required)>'
from /Users/wrburgess/dev/jbrb/league-server/config/environment.rb:2:in `require'
from /Users/wrburgess/dev/jbrb/league-server/config/environment.rb:2:in `<top (required)>'
from /Users/wrburgess/dev/jbrb/league-server/spec/spec_helper.rb:3:in `require'
from /Users/wrburgess/dev/jbrb/league-server/spec/spec_helper.rb:3:in `<top (required)>'
from /Users/wrburgess/dev/jbrb/league-server/spec/config/initializers/app_settings_spec.rb:1:in `require_relative'
from /Users/wrburgess/dev/jbrb/league-server/spec/config/initializers/app_settings_spec.rb:1:in `<top (required)>'
from /Users/wrburgess/.rvm/gems/[email protected]/gems/rspec-core-2.13.1/lib/rspec/core/configuration.rb:819:in `load'
from /Users/wrburgess/.rvm/gems/[email protected]/gems/rspec-core-2.13.1/lib/rspec/core/configuration.rb:819:in `block in load_spec_files'
from /Users/wrburgess/.rvm/gems/[email protected]/gems/rspec-core-2.13.1/lib/rspec/core/configuration.rb:819:in `each'
from /Users/wrburgess/.rvm/gems/[email protected]/gems/rspec-core-2.13.1/lib/rspec/core/configuration.rb:819:in `load_spec_files'
from /Users/wrburgess/.rvm/gems/[email protected]/gems/rspec-core-2.13.1/lib/rspec/core/command_line.rb:22:in `run'
from /Users/wrburgess/.rvm/gems/[email protected]/gems/rspec-core-2.13.1/lib/rspec/core/runner.rb:80:in `run'
from /Users/wrburgess/.rvm/gems/[email protected]/gems/rspec-core-2.13.1/lib/rspec/core/runner.rb:17:in `block in autorun'
변경 사항을 롤백 한 경우 다시 작동합니까? –
예, 앞뒤로 합격/실패 할 수 있습니다. – wrburgess