2014-09-02 84 views
0
:~/Documents/fedena/fedena-v2.3-bundle-linux$ rake db:create 
rake aborted! 
LoadError: cannot load such file -- spec/rake/spectask 
/var/lib/gems/1.9.1/gems/activesupport-2.3.5/lib/active_support/dependencies.rb:156:in `block in require' 
/var/lib/gems/1.9.1/gems/activesupport-2.3.5/lib/active_support/dependencies.rb:521:in `new_constants_in' 
/var/lib/gems/1.9.1/gems/activesupport-2.3.5/lib/active_support/dependencies.rb:156:in `require' 
/home/cool_admin/Documents/fedena/fedena-v2.3-bundle-linux/lib/tasks/rspec.rake:22:in `<top (required)>' 
/var/lib/gems/1.9.1/gems/activesupport-2.3.5/lib/active_support/dependencies.rb:145:in `load' 
/var/lib/gems/1.9.1/gems/activesupport-2.3.5/lib/active_support/dependencies.rb:145:in `block in load_with_new_constant_marking' 
/var/lib/gems/1.9.1/gems/activesupport-2.3.5/lib/active_support/dependencies.rb:521:in `new_constants_in' 
/var/lib/gems/1.9.1/gems/activesupport-2.3.5/lib/active_support/dependencies.rb:145:in `load_with_new_constant_marking' 
/var/lib/gems/1.9.1/gems/rails-2.3.5/lib/tasks/rails.rb:9:in `block in <top (required)>' 
/var/lib/gems/1.9.1/gems/rails-2.3.5/lib/tasks/rails.rb:9:in `each' 
/var/lib/gems/1.9.1/gems/rails-2.3.5/lib/tasks/rails.rb:9:in `<top (required)>' 
/home/cool_admin/Documents/fedena/fedena-v2.3-bundle-linux/Rakefile:12:in `<top (required)>' 
(See full trace by running task with --trace) 
--------------------------------------------------------- 
~/Documents/fedena/fedena-v2.3-bundle-linux$ rake db:create --trace 
rake aborted! 
LoadError: cannot load such file -- spec/rake/spectask 
/usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require' 
/usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require' 
/var/lib/gems/1.9.1/gems/activesupport-2.3.5/lib/active_support/dependencies.rb:156:in `block in require' 
/var/lib/gems/1.9.1/gems/activesupport-2.3.5/lib/active_support/dependencies.rb:521:in `new_constants_in' 
/var/lib/gems/1.9.1/gems/activesupport-2.3.5/lib/active_support/dependencies.rb:156:in `require' 
/home/cool_admin/Documents/fedena/fedena-v2.3-bundle-linux/lib/tasks/rspec.rake:22:in `<top (required)>' 
/var/lib/gems/1.9.1/gems/activesupport-2.3.5/lib/active_support/dependencies.rb:145:in `load' 
/var/lib/gems/1.9.1/gems/activesupport-2.3.5/lib/active_support/dependencies.rb:145:in `block in load_with_new_constant_marking' 
/var/lib/gems/1.9.1/gems/activesupport-2.3.5/lib/active_support/dependencies.rb:521:in `new_constants_in' 
/var/lib/gems/1.9.1/gems/activesupport-2.3.5/lib/active_support/dependencies.rb:145:in `load_with_new_constant_marking' 
/var/lib/gems/1.9.1/gems/rails-2.3.5/lib/tasks/rails.rb:9:in `block in <top (required)>' 
/var/lib/gems/1.9.1/gems/rails-2.3.5/lib/tasks/rails.rb:9:in `each' 
/var/lib/gems/1.9.1/gems/rails-2.3.5/lib/tasks/rails.rb:9:in `<top (required)>' 
/usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require' 
/usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require' 
/home/cool_admin/Documents/fedena/fedena-v2.3-bundle-linux/Rakefile:12:in `<top (required)>' 
/var/lib/gems/1.9.1/gems/rake-10.3.2/lib/rake/rake_module.rb:28:in `load' 
/var/lib/gems/1.9.1/gems/rake-10.3.2/lib/rake/rake_module.rb:28:in `load_rakefile' 
/var/lib/gems/1.9.1/gems/rake-10.3.2/lib/rake/application.rb:687:in `raw_load_rakefile' 
/var/lib/gems/1.9.1/gems/rake-10.3.2/lib/rake/application.rb:94:in `block in load_rakefile' 
/var/lib/gems/1.9.1/gems/rake-10.3.2/lib/rake/application.rb:176:in `standard_exception_handling' 
/var/lib/gems/1.9.1/gems/rake-10.3.2/lib/rake/application.rb:93:in `load_rakefile' 
/var/lib/gems/1.9.1/gems/rake-10.3.2/lib/rake/application.rb:77:in `block in run' 
/var/lib/gems/1.9.1/gems/rake-10.3.2/lib/rake/application.rb:176:in `standard_exception_handling' 
/var/lib/gems/1.9.1/gems/rake-10.3.2/lib/rake/application.rb:75:in `run' 
/var/lib/gems/1.9.1/gems/rake-10.3.2/bin/rake:33:in `<top (required)>' 
/usr/local/bin/rake:23:in `load' 
/usr/local/bin/rake:23:in `<main>' 
+3

堆棧跟蹤不構成問題,請修改或這肯定會被暫時擱置。你有沒有關注[這些步驟](http://www.projectfedena.org/install) – engineersmnky 2014-09-02 16:23:08

回答

2

看起來你已經升級,從RSpec的1到2的RSpec你需要更新你的Rakefile以使用新的格式要求:

rspec的-1

require 'spec/rake/spectask' 

Spec::Rake::SpecTask.new do |t| 
    t.spec_opts = ['--options', "\"spec/spec.opts\""] 
    t.spec_files = FileList['spec/**/*.rb'] 
end 

rspec的-2

require 'rspec/core/rake_task' 

RSpec::Core::RakeTask.new do |t| 
    t.rspec_opts = ["-c", "-f progress", "-r ./spec/spec_helper.rb"] 
    t.pattern = 'spec/**/*_spec.rb' 
end 

有關升級RSpec的附加信息可以在這裏找到:

https://www.relishapp.com/rspec/rspec-core/docs/upgrade

相關問題