运行黄瓜测试时未初始化的常量ActionController :: IntegrationTest(NameError)

时间:2013-07-19 19:32:25

标签: cucumber ruby-on-rails-4

我有以下配置:

  • Ruby 2.0.0-p247
  • Rails 4.1.0.beta
  • 黄瓜-1.3.5
  • 黄瓜护栏-1.3.0

当我运行rake cucumbercucumber myfeature.feature时,我会

uninitialized constant ActionController::IntegrationTest (NameError)
/Users/lrains/.rvm/gems/ruby-2.0.0-p247/gems/cucumber-rails-1.3.0/lib/cucumber/rails/world.rb:9:in `<module:Rails>'
/Users/lrains/.rvm/gems/ruby-2.0.0-p247/gems/cucumber-rails-1.3.0/lib/cucumber/rails/world.rb:8:in `<module:Cucumber>'
/Users/lrains/.rvm/gems/ruby-2.0.0-p247/gems/cucumber-rails-1.3.0/lib/cucumber/rails/world.rb:7:in `<top (required)>'
/Users/lrains/.rvm/gems/ruby-2.0.0-p247/gems/cucumber-rails-1.3.0/lib/cucumber/rails.rb:21:in `<top (required)>'
/Users/lrains/balm/features/support/env.rb:7:in `require'
/Users/lrains/balm/features/support/env.rb:7:in `<top (required)>'
...

这是兼容性问题吗?我该如何解决它并运行我的测试?

0 个答案:

没有答案