未定义的局部变量或方法“_setup_mocks”在黄瓜 0.8.5 和 rspec2 中
内部:features/support/env.rb
require 'cucumber/rspec/doubles'
我刚刚将我的项目移植到一个新的 cpu 上,它在所有内容上都返回此错误:
undefined local variable or method `_setup_mocks'
我猜我错过了一些东西。
Gems:
rspec (2.0.0.beta.18)
rspec-core (2.0.0.beta.18)
rspec-expectations (2.0.0.beta.18)
rspec-mocks (2.0.0.beta.18)
ccumber 0.8.5
rails (3.0.0.rc2, 2.3.8, 2.3.5, 2.2.2, 1.2.6)
ruby 1.8.7 (2009-06-12 patchlevel 174) [universal-darwin10.0]
看起来所有这些版本的导轨都是幻影导轨版本。如果我尝试删除它们,我会得到:
>> sudo gem uninstall -v=2.2.2 rails
ERROR: While executing gem ... (Gem::InstallError)
cannot uninstall, check `gem list -d rails`
Inside of : features/support/env.rb
require 'cucumber/rspec/doubles'
I just ported my project to a new cpu and it's returning this error on everything:
undefined local variable or method `_setup_mocks'
I'm guessing I'm missing something.
Gems :
rspec (2.0.0.beta.18)
rspec-core (2.0.0.beta.18)
rspec-expectations (2.0.0.beta.18)
rspec-mocks (2.0.0.beta.18)
ccumber 0.8.5
rails (3.0.0.rc2, 2.3.8, 2.3.5, 2.2.2, 1.2.6)
ruby 1.8.7 (2009-06-12 patchlevel 174) [universal-darwin10.0]
It also looks like all those versions of rails are phantom rails versions. If I try to remove them I get :
>> sudo gem uninstall -v=2.2.2 rails
ERROR: While executing gem ... (Gem::InstallError)
cannot uninstall, check `gem list -d rails`
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
Cucumber 0.8.5 不兼容:
但可以使用:
Cucumber 0.8.5 is not compatible with :
But worked with :