rspec超类不匹配TestRequest

时间:2014-09-25 20:00:41

标签: ruby-on-rails ruby ruby-on-rails-3 rspec cucumber

我的rspec&黄瓜运行正常。突然,我在尝试运行rspec或黄瓜时遇到此错误:

superclass mismatch for class TestRequest (TypeError)

这是堆栈跟踪

opt/boxen/rbenv/versions/1.9.3-p448/lib/ruby/gems/1.9.1/gems/actionpack-3.2.17/lib/action_controller/test_case.rb:151:in `<module:ActionController>': superclass mismatch for class TestRequest (TypeError)
    from /opt/boxen/rbenv/versions/1.9.3-p448/lib/ruby/gems/1.9.1/gems/actionpack-3.2.17/lib/action_controller/test_case.rb:7:in `<top (required)>'
    from /opt/boxen/rbenv/versions/1.9.3-p448/lib/ruby/gems/1.9.1/gems/rspec-rails-2.14.1/lib/rspec/rails/example/controller_example_group.rb:9:in `<module:ControllerExampleGroup>'
    from /opt/boxen/rbenv/versions/1.9.3-p448/lib/ruby/gems/1.9.1/gems/rspec-rails-2.14.1/lib/rspec/rails/example/controller_example_group.rb:6:in `<module:Rails>'
...

我确实在Spring中杀了一个测试,我知道有时会导致问题。 我在Rails 3.2.17 ruby​​ 1.9.3p448 Rspec 2.14.7

这似乎意味着我在rails环境中的某个地方有2个TestRequest对象? 谢谢你的帮助。

0 个答案:

没有答案