运行rspec的新应用程序提供了很多警告

时间:2014-07-07 21:29:20

标签: ruby-on-rails rspec

我有一个非常新的rails 4.1.1项目设置,我添加了rspec并运行了生成器等。

到目前为止,我已经添加了1个控制器和2个模型。

我的gemfile.lock有这个:

 rspec-core (3.0.2)
      rspec-support (~> 3.0.0)
    rspec-expectations (3.0.2)
      diff-lcs (>= 1.2.0, < 2.0)
      rspec-support (~> 3.0.0)
    rspec-mocks (3.0.2)
      rspec-support (~> 3.0.0)
    rspec-rails (3.0.1)
      actionpack (>= 3.0)
      activesupport (>= 3.0)
      railties (>= 3.0)
      rspec-core (~> 3.0.0)
      rspec-expectations (~> 3.0.0)
      rspec-mocks (~> 3.0.0)
      rspec-support (~> 3.0.0)
    rspec-support (3.0.2)

现在当我运行rspec时,我得到了这个输出:

/Users/me/.rvm/gems/ruby-2.1.1@testapp1/gems/sass-3.2.19/lib/sass/version.rb:5: warning: loading in progress, circular require considered harmful - /Users/me/.rvm/gems/ruby-2.1.1@testapp1/gems/sass-3.2.19/lib/sass.rb
    from /Users/me/.rvm/gems/ruby-2.1.1@testapp1/bin/ruby_executable_hooks:15:in  `<main>'
    from /Users/me/.rvm/gems/ruby-2.1.1@testapp1/bin/ruby_executable_hooks:15:in  `eval'
    from /Users/me/.rvm/gems/ruby-2.1.1@testapp1/bin/rspec:23:in  `<main>'
    from /Users/me/.rvm/gems/ruby-2.1.1@testapp1/bin/rspec:23:in  `load'
    from /Users/me/.rvm/gems/ruby-2.1.1@testapp1/gems/rspec-core-3.0.2/exe/rspec:4:in  `<top (required)>'
    from /Users/me/.rvm/gems/ruby-2.1.1@testapp1/gems/rspec-core-3.0.2/lib/rspec/core/runner.rb:38:in  `invoke'
    from /Users/me/.rvm/gems/ruby-2.1.1@testapp1/gems/rspec-core-3.0.2/lib/rspec/core/runner.rb:70:in  `run'
    from /Users/me/.rvm/gems/ruby-2.1.1@testapp1/gems/rspec-core-3.0.2/lib/rspec/core/runner.rb:85:in  `run'
    from /Users/me/.rvm/gems/ruby-2.1.1@testapp1/gems/rspec-core-3.0.2/lib/rspec/core/runner.rb:97:in  `setup'
    from /Users/me/.rvm/gems/ruby-2.1.1@testapp1/gems/rspec-core-3.0.2/lib/rspec/core/configuration.rb:1057:in  `load_spec_files'
    from /Users/me/.rvm/gems/ruby-2.1.1@testapp1/gems/rspec-core-3.0.2/lib/rspec/core/configuration.rb:1057:in  `each'
    from /Users/me/.rvm/gems/ruby-2.1.1@testapp1/gems/rspec-core-3.0.2/lib/rspec/core/configuration.rb:1057:in  `block in load_spec_files'
    from /Users/me/.rvm/gems/ruby-2.1.1@testapp1/gems/rspec-core-3.0.2/lib/rspec/core/configuration.rb:1057:in  `load'
    from /Users/me/dev/gitserver/testapp1/testapp1/spec/controllers/home_controller_spec.rb:1:in  `<top (required)>'
    from /Users/me/dev/gitserver/testapp1/testapp1/spec/controllers/home_controller_spec.rb:1:in  `require'
    from /Users/me/dev/gitserver/testapp1/testapp1/spec/rails_helper.rb:4:in  `<top (required)>'
    from /Users/me/dev/gitserver/testapp1/testapp1/spec/rails_helper.rb:4:in  `require'
    from /Users/me/dev/gitserver/testapp1/testapp1/config/environment.rb:2:in  `<top (required)>'
    from /Users/me/dev/gitserver/testapp1/testapp1/config/environment.rb:2:in  `require'
    from /Users/me/dev/gitserver/testapp1/testapp1/config/application.rb:14:in  `<top (required)>'
    from /Users/me/.rvm/gems/ruby-2.1.1@global/gems/bundler-1.5.3/lib/bundler.rb:131:in  `require'
    from /Users/me/.rvm/gems/ruby-2.1.1@global/gems/bundler-1.5.3/lib/bundler/runtime.rb:61:in  `require'
    from /Users/me/.rvm/gems/ruby-2.1.1@global/gems/bundler-1.5.3/lib/bundler/runtime.rb:61:in  `each'
    from /Users/me/.rvm/gems/ruby-2.1.1@global/gems/bundler-1.5.3/lib/bundler/runtime.rb:72:in  `block in require'
    from /Users/me/.rvm/gems/ruby-2.1.1@global/gems/bundler-1.5.3/lib/bundler/runtime.rb:72:in  `each'
    from /Users/me/.rvm/gems/ruby-2.1.1@global/gems/bundler-1.5.3/lib/bundler/runtime.rb:76:in  `block (2 levels) in require'
    from /Users/me/.rvm/gems/ruby-2.1.1@global/gems/bundler-1.5.3/lib/bundler/runtime.rb:76:in  `require'
    from /Users/me/.rvm/gems/ruby-2.1.1@testapp1/gems/sass-rails-4.0.3/lib/sass-rails.rb:1:in  `<top (required)>'
    from /Users/me/.rvm/gems/ruby-2.1.1@testapp1/gems/sass-rails-4.0.3/lib/sass-rails.rb:1:in  `require'
    from /Users/me/.rvm/gems/ruby-2.1.1@testapp1/gems/sass-rails-4.0.3/lib/sass/rails.rb:8:in  `<top (required)>'
    from /Users/me/.rvm/gems/ruby-2.1.1@testapp1/gems/sass-rails-4.0.3/lib/sass/rails.rb:8:in  `require'
    from /Users/me/.rvm/gems/ruby-2.1.1@testapp1/gems/sass-rails-4.0.3/lib/sass/rails/helpers.rb:1:in  `<top (required)>'
    from /Users/me/.rvm/gems/ruby-2.1.1@testapp1/gems/sass-rails-4.0.3/lib/sass/rails/helpers.rb:1:in  `require'
    from /Users/me/.rvm/gems/ruby-2.1.1@testapp1/gems/sprockets-2.11.0/lib/sprockets/sass_functions.rb:1:in  `<top (required)>'
    from /Users/me/.rvm/gems/ruby-2.1.1@testapp1/gems/sprockets-2.11.0/lib/sprockets/sass_functions.rb:1:in  `require'
    from /Users/me/.rvm/gems/ruby-2.1.1@testapp1/gems/sass-3.2.19/lib/sass.rb:9:in  `<top (required)>'
    from /Users/me/.rvm/gems/ruby-2.1.1@testapp1/gems/sass-3.2.19/lib/sass.rb:9:in  `require'
    from /Users/me/.rvm/gems/ruby-2.1.1@testapp1/gems/sass-3.2.19/lib/sass/version.rb:5:in  `<top (required)>'
    from /Users/me/.rvm/gems/ruby-2.1.1@testapp1/gems/sass-3.2.19/lib/sass/version.rb:5:in  `require'
/Users/me/.rvm/gems/ruby-2.1.1@testapp1/gems/sass-3.2.19/lib/sass/version.rb:115: warning: File.exists? is a deprecated name, use File.exist? instead
/Users/me/.rvm/gems/ruby-2.1.1@testapp1/gems/sass-3.2.19/lib/sass/version.rb:90: warning: File.exists? is a deprecated name, use File.exist? instead
/Users/me/.rvm/gems/ruby-2.1.1@testapp1/gems/sass-3.2.19/lib/sass/version.rb:95: warning: File.exists? is a deprecated name, use File.exist? instead
/Users/me/.rvm/gems/ruby-2.1.1@testapp1/gems/sass-3.2.19/lib/sass/tree/node.rb:73: warning: method redefined; discarding old children=
/Users/me/.rvm/gems/ruby-2.1.1@testapp1/gems/sass-3.2.19/lib/sass/tree/visitors/perform.rb:197: warning: literal in condition
/Users/me/.rvm/gems/ruby-2.1.1@testapp1/gems/sass-3.2.19/lib/sass/script/literal.rb:8: warning: loading in progress, circular require considered harmful - /Users/me/.rvm/gems/ruby-2.1.1@testapp1/gems/sass-3.2.19/lib/sass/script/string.rb
    from /Users/me/.rvm/gems/ruby-2.1.1@testapp1/bin/ruby_executable_hooks:15:in  `<main>'
    from /Users/me/.rvm/gems/ruby-2.1.1@testapp1/bin/ruby_executable_hooks:15:in  `eval'
    from /Users/me/.rvm/gems/ruby-2.1.1@testapp1/bin/rspec:23:in  `<main>'
    from /Users/me/.rvm/gems/ruby-2.1.1@testapp1/bin/rspec:23:in  `load'
    from /Users/me/.rvm/gems/ruby-2.1.1@testapp1/gems/rspec-core-3.0.2/exe/rspec:4:in  `<top (required)>'
    from /Users/me/.rvm/gems/ruby-2.1.1@testapp1/gems/rspec-core-3.0.2/lib/rspec/core/runner.rb:38:in  `invoke'
    from /Users/me/.rvm/gems/ruby-2.1.1@testapp1/gems/rspec-core-3.0.2/lib/rspec/core/runner.rb:70:in  `run'
    from /Users/me/.rvm/gems/ruby-2.1.1@testapp1/gems/rspec-core-3.0.2/lib/rspec/core/runner.rb:85:in  `run'
    from /Users/me/.rvm/gems/ruby-2.1.1@testapp1/gems/rspec-core-3.0.2/lib/rspec/core/runner.rb:97:in  `setup'
    from /Users/me/.rvm/gems/ruby-2.1.1@testapp1/gems/rspec-core-3.0.2/lib/rspec/core/configuration.rb:1057:in  `load_spec_files'
    from /Users/me/.rvm/gems/ruby-2.1.1@testapp1/gems/rspec-core-3.0.2/lib/rspec/core/configuration.rb:1057:in  `each'
    from /Users/me/.rvm/gems/ruby-2.1.1@testapp1/gems/rspec-core-3.0.2/lib/rspec/core/configuration.rb:1057:in  `block in load_spec_files'
    from /Users/me/.rvm/gems/ruby-2.1.1@testapp1/gems/rspec-core-3.0.2/lib/rspec/core/configuration.rb:1057:in  `load'
    from /Users/me/dev/gitserver/testapp1/testapp1/spec/controllers/home_controller_spec.rb:1:in  `<top (required)>'
    from /Users/me/dev/gitserver/testapp1/testapp1/spec/controllers/home_controller_spec.rb:1:in  `require'
    from /Users/me/dev/gitserver/testapp1/testapp1/spec/rails_helper.rb:4:in  `<top (required)>'
    from /Users/me/dev/gitserver/testapp1/testapp1/spec/rails_helper.rb:4:in  `require'
    from /Users/me/dev/gitserver/testapp1/testapp1/config/environment.rb:2:in  `<top (required)>'
    from /Users/me/dev/gitserver/testapp1/testapp1/config/environment.rb:2:in  `require'
    from /Users/me/dev/gitserver/testapp1/testapp1/config/application.rb:14:in  `<top (required)>'
    from /Users/me/.rvm/gems/ruby-2.1.1@global/gems/bundler-1.5.3/lib/bundler.rb:131:in  `require'
    from /Users/me/.rvm/gems/ruby-2.1.1@global/gems/bundler-1.5.3/lib/bundler/runtime.rb:61:in  `require'
    from /Users/me/.rvm/gems/ruby-2.1.1@global/gems/bundler-1.5.3/lib/bundler/runtime.rb:61:in  `each'
    from /Users/me/.rvm/gems/ruby-2.1.1@global/gems/bundler-1.5.3/lib/bundler/runtime.rb:72:in  `block in require'
    from /Users/me/.rvm/gems/ruby-2.1.1@global/gems/bundler-1.5.3/lib/bundler/runtime.rb:72:in  `each'
    from /Users/me/.rvm/gems/ruby-2.1.1@global/gems/bundler-1.5.3/lib/bundler/runtime.rb:76:in  `block (2 levels) in require'
    from /Users/me/.rvm/gems/ruby-2.1.1@global/gems/bundler-1.5.3/lib/bundler/runtime.rb:76:in  `require'
    from /Users/me/.rvm/gems/ruby-2.1.1@testapp1/gems/sass-rails-4.0.3/lib/sass-rails.rb:1:in  `<top (required)>'
    from /Users/me/.rvm/gems/ruby-2.1.1@testapp1/gems/sass-rails-4.0.3/lib/sass-rails.rb:1:in  `require'
    from /Users/me/.rvm/gems/ruby-2.1.1@testapp1/gems/sass-rails-4.0.3/lib/sass/rails.rb:8:in  `<top (required)>'
    from /Users/me/.rvm/gems/ruby-2.1.1@testapp1/gems/sass-rails-4.0.3/lib/sass/rails.rb:8:in  `require'
    from /Users/me/.rvm/gems/ruby-2.1.1@testapp1/gems/sass-rails-4.0.3/lib/sass/rails/helpers.rb:1:in  `<top (required)>'
    from /Users/me/.rvm/gems/ruby-2.1.1@testapp1/gems/sass-rails-4.0.3/lib/sass/rails/helpers.rb:1:in  `require'
    from /Users/me/.rvm/gems/ruby-2.1.1@testapp1/gems/sprockets-2.11.0/lib/sprockets/sass_functions.rb:1:in  `<top (required)>'
    from /Users/me/.rvm/gems/ruby-2.1.1@testapp1/gems/sprockets-2.11.0/lib/sprockets/sass_functions.rb:1:in  `require'
    from /Users/me/.rvm/gems/ruby-2.1.1@testapp1/gems/sass-3.2.19/lib/sass.rb:93:in  `<top (required)>'
    from /Users/me/.rvm/gems/ruby-2.1.1@testapp1/gems/sass-3.2.19/lib/sass.rb:93:in  `require'
    from /Users/me/.rvm/gems/ruby-2.1.1@testapp1/gems/sass-3.2.19/lib/sass/engine.rb:40:in  `<top (required)>'
    from /Users/me/.rvm/gems/ruby-2.1.1@testapp1/gems/sass-3.2.19/lib/sass/engine.rb:40:in  `require'
    from /Users/me/.rvm/gems/ruby-2.1.1@testapp1/gems/sass-3.2.19/lib/sass/script.rb:4:in  `<top (required)>'
    from /Users/me/.rvm/gems/ruby-2.1.1@testapp1/gems/sass-3.2.19/lib/sass/script.rb:4:in  `require'
    from /Users/me/.rvm/gems/ruby-2.1.1@testapp1/gems/sass-3.2.19/lib/sass/script/operation.rb:2:in  `<top (required)>'
    from /Users/me/.rvm/gems/ruby-2.1.1@testapp1/gems/sass-3.2.19/lib/sass/script/operation.rb:2:in  `require'
    from /Users/me/.rvm/gems/ruby-2.1.1@testapp1/gems/sass-3.2.19/lib/sass/script/string.rb:1:in  `<top (required)>'
    from /Users/me/.rvm/gems/ruby-2.1.1@testapp1/gems/sass-3.2.19/lib/sass/script/string.rb:1:in  `require'
    from /Users/me/.rvm/gems/ruby-2.1.1@testapp1/gems/sass-3.2.19/lib/sass/script/literal.rb:1:in  `<top (required)>'
    from /Users/me/.rvm/gems/ruby-2.1.1@testapp1/gems/sass-3.2.19/lib/sass/script/literal.rb:7:in  `<module:Script>'
    from /Users/me/.rvm/gems/ruby-2.1.1@testapp1/gems/sass-3.2.19/lib/sass/script/literal.rb:8:in  `<class:Literal>'
    from /Users/me/.rvm/gems/ruby-2.1.1@testapp1/gems/sass-3.2.19/lib/sass/script/literal.rb:8:in  `require'
/Users/me/.rvm/gems/ruby-2.1.1@testapp1/gems/sass-3.2.19/lib/sass/script/number.rb:1: warning: loading in progress, circular require considered harmful - /Users/me/.rvm/gems/ruby-2.1.1@testapp1/gems/sass-3.2.19/lib/sass/script/literal.rb
    from /Users/me/.rvm/gems/ruby-2.1.1@testapp1/bin/ruby_executable_hooks:15:in  `<main>'
    from /Users/me/.rvm/gems/ruby-2.1.1@testapp1/bin/ruby_executable_hooks:15:in  `eval'
    from /Users/me/.rvm/gems/ruby-2.1.1@testapp1/bin/rspec:23:in  `<main>'
    from /Users/me/.rvm/gems/ruby-2.1.1@testapp1/bin/rspec:23:in  `load'
    from /Users/me/.rvm/gems/ruby-2.1.1@testapp1/gems/rspec-core-3.0.2/exe/rspec:4:in  `<top (required)>'
    from /Users/me/.rvm/gems/ruby-2.1.1@testapp1/gems/rspec-core-3.0.2/lib/rspec/core/runner.rb:38:in  `invoke'
    from /Users/me/.rvm/gems/ruby-2.1.1@testapp1/gems/rspec-core-3.0.2/lib/rspec/core/runner.rb:70:in  `run'
    from /Users/me/.rvm/gems/ruby-2.1.1@testapp1/gems/rspec-core-3.0.2/lib/rspec/core/runner.rb:85:in  `run'
    from /Users/me/.rvm/gems/ruby-2.1.1@testapp1/gems/rspec-core-3.0.2/lib/rspec/core/runner.rb:97:in  `setup'
    from /Users/me/.rvm/gems/ruby-2.1.1@testapp1/gems/rspec-core-3.0.2/lib/rspec/core/configuration.rb:1057:in  `load_spec_files'
    from /Users/me/.rvm/gems/ruby-2.1.1@testapp1/gems/rspec-core-3.0.2/lib/rspec/core/configuration.rb:1057:in  `each'
    from /Users/me/.rvm/gems/ruby-2.1.1@testapp1/gems/rspec-core-3.0.2/lib/rspec/core/configuration.rb:1057:in  `block in load_spec_files'
    from /Users/me/.rvm/gems/ruby-2.1.1@testapp1/gems/rspec-core-3.0.2/lib/rspec/core/configuration.rb:1057:in  `load'
    from /Users/me/dev/gitserver/testapp1/testapp1/spec/controllers/home_controller_spec.rb:1:in  `<top (required)>'
    from /Users/me/dev/gitserver/testapp1/testapp1/spec/controllers/home_controller_spec.rb:1:in  `require'
    from /Users/me/dev/gitserver/testapp1/testapp1/spec/rails_helper.rb:4:in  `<top (required)>'
    from /Users/me/dev/gitserver/testapp1/testapp1/spec/rails_helper.rb:4:in  `require'
    from /Users/me/dev/gitserver/testapp1/testapp1/config/environment.rb:2:in  `<top (required)>'
    from /Users/me/dev/gitserver/testapp1/testapp1/config/environment.rb:2:in  `require'
    from /Users/me/dev/gitserver/testapp1/testapp1/config/application.rb:14:in  `<top (required)>'
    from /Users/me/.rvm/gems/ruby-2.1.1@global/gems/bundler-1.5.3/lib/bundler.rb:131:in  `require'
    from /Users/me/.rvm/gems/ruby-2.1.1@global/gems/bundler-1.5.3/lib/bundler/runtime.rb:61:in  `require'
    from /Users/me/.rvm/gems/ruby-2.1.1@global/gems/bundler-1.5.3/lib/bundler/runtime.rb:61:in  `each'
    from /Users/me/.rvm/gems/ruby-2.1.1@global/gems/bundler-1.5.3/lib/bundler/runtime.rb:72:in  `block in require'
    from /Users/me/.rvm/gems/ruby-2.1.1@global/gems/bundler-1.5.3/lib/bundler/runtime.rb:72:in  `each'
    from /Users/me/.rvm/gems/ruby-2.1.1@global/gems/bundler-1.5.3/lib/bundler/runtime.rb:76:in  `block (2 levels) in require'
    from /Users/me/.rvm/gems/ruby-2.1.1@global/gems/bundler-1.5.3/lib/bundler/runtime.rb:76:in  `require'
    from /Users/me/.rvm/gems/ruby-2.1.1@testapp1/gems/sass-rails-4.0.3/lib/sass-rails.rb:1:in  `<top (required)>'
    from /Users/me/.rvm/gems/ruby-2.1.1@testapp1/gems/sass-rails-4.0.3/lib/sass-rails.rb:1:in  `require'
    from /Users/me/.rvm/gems/ruby-2.1.1@testapp1/gems/sass-rails-4.0.3/lib/sass/rails.rb:8:in  `<top (required)>'
    from /Users/me/.rvm/gems/ruby-2.1.1@testapp1/gems/sass-rails-4.0.3/lib/sass/rails.rb:8:in  `require'
    from /Users/me/.rvm/gems/ruby-2.1.1@testapp1/gems/sass-rails-4.0.3/lib/sass/rails/helpers.rb:1:in  `<top (required)>'
    from /Users/me/.rvm/gems/ruby-2.1.1@testapp1/gems/sass-rails-4.0.3/lib/sass/rails/helpers.rb:1:in  `require'
    from /Users/me/.rvm/gems/ruby-2.1.1@testapp1/gems/sprockets-2.11.0/lib/sprockets/sass_functions.rb:1:in  `<top (required)>'
    from /Users/me/.rvm/gems/ruby-2.1.1@testapp1/gems/sprockets-2.11.0/lib/sprockets/sass_functions.rb:1:in  `require'
    from /Users/me/.rvm/gems/ruby-2.1.1@testapp1/gems/sass-3.2.19/lib/sass.rb:93:in  `<top (required)>'
    from /Users/me/.rvm/gems/ruby-2.1.1@testapp1/gems/sass-3.2.19/lib/sass.rb:93:in  `require'
    from /Users/me/.rvm/gems/ruby-2.1.1@testapp1/gems/sass-3.2.19/lib/sass/engine.rb:40:in  `<top (required)>'
    from /Users/me/.rvm/gems/ruby-2.1.1@testapp1/gems/sass-3.2.19/lib/sass/engine.rb:40:in  `require'
    from /Users/me/.rvm/gems/ruby-2.1.1@testapp1/gems/sass-3.2.19/lib/sass/script.rb:4:in  `<top (required)>'
    from /Users/me/.rvm/gems/ruby-2.1.1@testapp1/gems/sass-3.2.19/lib/sass/script.rb:4:in  `require'
    from /Users/me/.rvm/gems/ruby-2.1.1@testapp1/gems/sass-3.2.19/lib/sass/script/operation.rb:2:in  `<top (required)>'
    from /Users/me/.rvm/gems/ruby-2.1.1@testapp1/gems/sass-3.2.19/lib/sass/script/operation.rb:2:in  `require'
    from /Users/me/.rvm/gems/ruby-2.1.1@testapp1/gems/sass-3.2.19/lib/sass/script/string.rb:1:in  `<top (required)>'
    from /Users/me/.rvm/gems/ruby-2.1.1@testapp1/gems/sass-3.2.19/lib/sass/script/string.rb:1:in  `require'
    from /Users/me/.rvm/gems/ruby-2.1.1@testapp1/gems/sass-3.2.19/lib/sass/script/literal.rb:1:in  `<top (required)>'
    from /Users/me/.rvm/gems/ruby-2.1.1@testapp1/gems/sass-3.2.19/lib/sass/script/literal.rb:7:in  `<module:Script>'
    from /Users/me/.rvm/gems/ruby-2.1.1@testapp1/gems/sass-3.2.19/lib/sass/script/literal.rb:9:in  `<class:Literal>'
    from /Users/me/.rvm/gems/ruby-2.1.1@testapp1/gems/sass-3.2.19/lib/sass/script/literal.rb:9:in  `require'
    from /Users/me/.rvm/gems/ruby-2.1.1@testapp1/gems/sass-3.2.19/lib/sass/script/number.rb:1:in  `<top (required)>'
    from /Users/me/.rvm/gems/ruby-2.1.1@testapp1/gems/sass-3.2.19/lib/sass/script/number.rb:1:in  `require'
/Users/me/.rvm/gems/ruby-2.1.1@testapp1/gems/sass-3.2.19/lib/sass/script/color.rb:1: warning: loading in progress, circular require considered harmful - /Users/me/.rvm/gems/ruby-2.1.1@testapp1/gems/sass-3.2.19/lib/sass/script/literal.rb
    from /Users/me/.rvm/gems/ruby-2.1.1@testapp1/bin/ruby_executable_hooks:15:in  `<main>'
    from /Users/me/.rvm/gems/ruby-2.1.1@testapp1/bin/ruby_executable_hooks:15:in  `eval'
    from /Users/me/.rvm/gems/ruby-2.1.1@testapp1/bin/rspec:23:in  `<main>'
    from /Users/me/.rvm/gems/ruby-2.1.1@testapp1/bin/rspec:23:in  `load'
    from /Users/me/.rvm/gems/ruby-2.1.1@testapp1/gems/rspec-core-3.0.2/exe/rspec:4:in  `<top (required)>'
    from /Users/me/.rvm/gems/ruby-2.1.1@testapp1/gems/rspec-core-3.0.2/lib/rspec/core/runner.rb:38:in  `invoke'
    from /Users/me/.rvm/gems/ruby-2.1.1@testapp1/gems/rspec-core-3.0.2/lib/rspec/core/runner.rb:70:in  `run'
    from /Users/me/.rvm/gems/ruby-2.1.1@testapp1/gems/rspec-core-3.0.2/lib/rspec/core/runner.rb:85:in  `run'
    from /Users/me/.rvm/gems/ruby-2.1.1@testapp1/gems/rspec-core-3.0.2/lib/rspec/core/runner.rb:97:in  `setup'
    from /Users/me/.rvm/gems/ruby-2.1.1@testapp1/gems/rspec-core-3.0.2/lib/rspec/core/configuration.rb:1057:in  `load_spec_files'
    from /Users/me/.rvm/gems/ruby-2.1.1@testapp1/gems/rspec-core-3.0.2/lib/rspec/core/configuration.rb:1057:in  `each'
    from /Users/me/.rvm/gems/ruby-2.1.1@testapp1/gems/rspec-core-3.0.2/lib/rspec/core/configuration.rb:1057:in  `block in load_spec_files'
    from /Users/me/.rvm/gems/ruby-2.1.1@testapp1/gems/rspec-core-3.0.2/lib/rspec/core/configuration.rb:1057:in  `load'
    from /Users/me/dev/gitserver/testapp1/testapp1/spec/controllers/home_controller_spec.rb:1:in  `<top (required)>'
    from /Users/me/dev/gitserver/testapp1/testapp1/spec/controllers/home_controller_spec.rb:1:in  `require'
    from /Users/me/dev/gitserver/testapp1/testapp1/spec/rails_helper.rb:4:in  `<top (required)>'
    from /Users/me/dev/gitserver/testapp1/testapp1/spec/rails_helper.rb:4:in  `require'
    from /Users/me/dev/gitserver/testapp1/testapp1/config/environment.rb:2:in  `<top (required)>'
    from /Users/me/dev/gitserver/testapp1/testapp1/config/environment.rb:2:in  `require'
    from /Users/me/dev/gitserver/testapp1/testapp1/config/application.rb:14:in  `<top (required)>'
    from /Users/me/.rvm/gems/ruby-2.1.1@global/gems/bundler-1.5.3/lib/bundler.rb:131:in  `require'
    from /Users/me/.rvm/gems/ruby-2.1.1@global/gems/bundler-1.5.3/lib/bundler/runtime.rb:61:in  `require'
    from /Users/me/.rvm/gems/ruby-2.1.1@global/gems/bundler-1.5.3/lib/bundler/runtime.rb:61:in  `each'
    from /Users/me/.rvm/gems/ruby-2.1.1@global/gems/bundler-1.5.3/lib/bundler/runtime.rb:72:in  `block in require'
    from /Users/me/.rvm/gems/ruby-2.1.1@global/gems/bundler-1.5.3/lib/bundler/runtime.rb:72:in  `each'
    from /Users/me/.rvm/gems/ruby-2.1.1@global/gems/bundler-1.5.3/lib/bundler/runtime.rb:76:in  `block (2 levels) in require'
    from /Users/me/.rvm/gems/ruby-2.1.1@global/gems/bundler-1.5.3/lib/bundler/runtime.rb:76:in  `require'
    from /Users/me/.rvm/gems/ruby-2.1.1@testapp1/gems/sass-rails-4.0.3/lib/sass-rails.rb:1:in  `<top (required)>'
    from /Users/me/.rvm/gems/ruby-2.1.1@testapp1/gems/sass-rails-4.0.3/lib/sass-rails.rb:1:in  `require'
    from /Users/me/.rvm/gems/ruby-2.1.1@testapp1/gems/sass-rails-4.0.3/lib/sass/rails.rb:8:in  `<top (required)>'
    from /Users/me/.rvm/gems/ruby-2.1.1@testapp1/gems/sass-rails-4.0.3/lib/sass/rails.rb:8:in  `require'
    from /Users/me/.rvm/gems/ruby-2.1.1@testapp1/gems/sass-rails-4.0.3/lib/sass/rails/helpers.rb:1:in  `<top (required)>'
    from /Users/me/.rvm/gems/ruby-2.1.1@testapp1/gems/sass-rails-4.0.3/lib/sass/rails/helpers.rb:1:in  `require'
    from /Users/me/.rvm/gems/ruby-2.1.1@testapp1/gems/sprockets-2.11.0/lib/sprockets/sass_functions.rb:1:in  `<top (required)>'
    from /Users/me/.rvm/gems/ruby-2.1.1@testapp1/gems/sprockets-2.11.0/lib/sprockets/sass_functions.rb:1:in  `require'
    from /Users/me/.rvm/gems/ruby-2.1.1@testapp1/gems/sass-3.2.19/lib/sass.rb:93:in  `<top (required)>'
    from /Users/me/.rvm/gems/ruby-2.1.1@testapp1/gems/sass-3.2.19/lib/sass.rb:93:in  `require'
    from /Users/me/.rvm/gems/ruby-2.1.1@testapp1/gems/sass-3.2.19/lib/sass/engine.rb:40:in  `<top (required)>'
    from /Users/me/.rvm/gems/ruby-2.1.1@testapp1/gems/sass-3.2.19/lib/sass/engine.rb:40:in  `require'
    from /Users/me/.rvm/gems/ruby-2.1.1@testapp1/gems/sass-

...

有什么问题,rails 4.1.1还不兼容rspec吗?

2 个答案:

答案 0 :(得分:5)

只需从--warning文件中删除/.rspec选项,因为它现在是默认选项。

答案 1 :(得分:0)

我在warning = false

中指定了Rakefile
Rake::TestTask.new(:concepts) do |t|
  #...
  t.warning = false
end