简体   繁体   中英

rake aborted - cannot load such file error

I recently upgrade the Rspec Gem in my Ruby project from 2.12.0 to 2.99.2. Before I did the upgrade everything works just fine, but once I upgrade to 2.99.2 and run one of my spec test, there is a "rake aborted - cannot load such file error" pop up. The error message said it cannot load support/ext/vcr, which is another rb file I require in the spec file, any idea about that?

  rake aborted!

   cannot load such file -- support/ext/vcr



   (See full trace by running task with --trace)

 # ./spec/integration/resque_integration_spec.rb:31:in `rescue in wait_for'

 # ./spec/integration/resque_integration_spec.rb:22:in `wait_for'

 # ./spec/integration/resque_integration_spec.rb:77:in `block (2 levels) in <top (required)>'

 # /usr/local/lib/ruby/gems/1.9.1/gems/rspec-core-2.99.2/lib/rspec/core/extensions/instance_eval_with_args.rb:16:in `instance_exec'

 # /usr/local/lib/ruby/gems/1.9.1/gems/rspec-core-2.99.2/lib/rspec/core/extensions/instance_eval_with_args.rb:16:in `instance_eval_with_args'

 # /usr/local/lib/ruby/gems/1.9.1/gems/rspec-core-2.99.2/lib/rspec/core/example.rb:116:in `block in run'

 # /usr/local/lib/ruby/gems/1.9.1/gems/rspec-core-2.99.2/lib/rspec/core/example.rb:248:in `with_around_each_hooks'

 # /usr/local/lib/ruby/gems/1.9.1/gems/rspec-core-2.99.2/lib/rspec/core/example.rb:113:in `run'

 # /usr/local/lib/ruby/gems/1.9.1/gems/rspec-core-2.99.2/lib/rspec/core/example_group.rb:515:in `block in run_examples'

 # /usr/local/lib/ruby/gems/1.9.1/gems/rspec-core-2.99.2/lib/rspec/core/example_group.rb:511:in `map'

 # /usr/local/lib/ruby/gems/1.9.1/gems/rspec-core-2.99.2/lib/rspec/core/example_group.rb:511:in `run_examples'

 # /usr/local/lib/ruby/gems/1.9.1/gems/rspec-core-2.99.2/lib/rspec/core/example_group.rb:496:in `run'

 # /usr/local/lib/ruby/gems/1.9.1/gems/rspec-core-2.99.2/lib/rspec/core/command_line.rb:24:in `block (2 levels) in run'

 # /usr/local/lib/ruby/gems/1.9.1/gems/rspec-core-2.99.2/lib/rspec/core/command_line.rb:24:in `map'

 # /usr/local/lib/ruby/gems/1.9.1/gems/rspec-core-2.99.2/lib/rspec/core/command_line.rb:24:in `block in run'

 # /usr/local/lib/ruby/gems/1.9.1/gems/rspec-core-2.99.2/lib/rspec/core/reporter.rb:58:in `report'

 # /usr/local/lib/ruby/gems/1.9.1/gems/rspec-core-2.99.2/lib/rspec/core/command_line.rb:21:in `run'

 # /usr/local/lib/ruby/gems/1.9.1/gems/rspec-core-2.99.2/lib/rspec/core/runner.rb:103:in `run'

 # /usr/local/lib/ruby/gems/1.9.1/gems/rspec-core-2.99.2/lib/rspec/core/runner.rb:17:in `block in autorun'

After updating, you should always restart your development environment. See if doing that helps at all.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM