Rails 3.1.1 和 Cucumber - 错误

发布于 2024-12-08 21:09:53 字数 4917 浏览 0 评论 0原文

我在 git 运行 Cucumber 时遇到了一些问题。使用黄瓜时,我得到以下结果:

    Yanniss-MacBook:rechnungen yannis$ cucumber
Using the default profile...
/Users/yannis/.rbenv/versions/1.9.2-p290/lib/ruby/gems/1.9.1/gems/rack-1.3.4/lib/rack/backports/uri/common_192.rb:53: warning: already initialized constant WFKV_
MiniTest v1.6.0 is out of date.
`gem install minitest` and add `gem 'minitest' to you test helper. (RuntimeError)
/Users/yannis/.rbenv/versions/1.9.2-p290/lib/ruby/gems/1.9.1/gems/turn-0.8.3/lib/turn/autorun/minitest.rb:14:in `<top (required)>'
/Users/yannis/.rbenv/versions/1.9.2-p290/lib/ruby/gems/1.9.1/gems/activesupport-3.1.1/lib/active_support/dependencies.rb:240:in `require'
/Users/yannis/.rbenv/versions/1.9.2-p290/lib/ruby/gems/1.9.1/gems/activesupport-3.1.1/lib/active_support/dependencies.rb:240:in `block in require'
/Users/yannis/.rbenv/versions/1.9.2-p290/lib/ruby/gems/1.9.1/gems/activesupport-3.1.1/lib/active_support/dependencies.rb:225:in `load_dependency'
/Users/yannis/.rbenv/versions/1.9.2-p290/lib/ruby/gems/1.9.1/gems/activesupport-3.1.1/lib/active_support/dependencies.rb:240:in `require'
/Users/yannis/.rbenv/versions/1.9.2-p290/lib/ruby/gems/1.9.1/gems/turn-0.8.3/lib/turn.rb:13:in `<top (required)>'
/Users/yannis/.rbenv/versions/1.9.2-p290/lib/ruby/gems/1.9.1/gems/activesupport-3.1.1/lib/active_support/dependencies.rb:240:in `require'
/Users/yannis/.rbenv/versions/1.9.2-p290/lib/ruby/gems/1.9.1/gems/activesupport-3.1.1/lib/active_support/dependencies.rb:240:in `block in require'
/Users/yannis/.rbenv/versions/1.9.2-p290/lib/ruby/gems/1.9.1/gems/activesupport-3.1.1/lib/active_support/dependencies.rb:225:in `load_dependency'
/Users/yannis/.rbenv/versions/1.9.2-p290/lib/ruby/gems/1.9.1/gems/activesupport-3.1.1/lib/active_support/dependencies.rb:240:in `require'
/Users/yannis/.rbenv/versions/1.9.2-p290/lib/ruby/gems/1.9.1/gems/railties-3.1.1/lib/rails/test_help.rb:19:in `<top (required)>'
/Users/yannis/.rbenv/versions/1.9.2-p290/lib/ruby/gems/1.9.1/gems/activesupport-3.1.1/lib/active_support/dependencies.rb:240:in `require'
/Users/yannis/.rbenv/versions/1.9.2-p290/lib/ruby/gems/1.9.1/gems/activesupport-3.1.1/lib/active_support/dependencies.rb:240:in `block in require'
/Users/yannis/.rbenv/versions/1.9.2-p290/lib/ruby/gems/1.9.1/gems/activesupport-3.1.1/lib/active_support/dependencies.rb:225:in `load_dependency'
/Users/yannis/.rbenv/versions/1.9.2-p290/lib/ruby/gems/1.9.1/gems/activesupport-3.1.1/lib/active_support/dependencies.rb:240:in `require'
/Users/yannis/.rbenv/versions/1.9.2-p290/lib/ruby/gems/1.9.1/gems/cucumber-rails-1.1.1/lib/cucumber/rails.rb:11:in `<top (required)>'
/Users/yannis/.rbenv/versions/1.9.2-p290/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:59:in `require'
/Users/yannis/.rbenv/versions/1.9.2-p290/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:59:in `rescue in require'
/Users/yannis/.rbenv/versions/1.9.2-p290/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:35:in `require'
/Users/yannis/Sites/rechnungen/features/support/env.rb:7:in `<top (required)>'
/Users/yannis/.rbenv/versions/1.9.2-p290/lib/ruby/gems/1.9.1/gems/cucumber-1.1.0/lib/cucumber/rb_support/rb_language.rb:143:in `load'
/Users/yannis/.rbenv/versions/1.9.2-p290/lib/ruby/gems/1.9.1/gems/cucumber-1.1.0/lib/cucumber/rb_support/rb_language.rb:143:in `load_code_file'
/Users/yannis/.rbenv/versions/1.9.2-p290/lib/ruby/gems/1.9.1/gems/cucumber-1.1.0/lib/cucumber/runtime/support_code.rb:171:in `load_file'
/Users/yannis/.rbenv/versions/1.9.2-p290/lib/ruby/gems/1.9.1/gems/cucumber-1.1.0/lib/cucumber/runtime/support_code.rb:83:in `block in load_files!'
/Users/yannis/.rbenv/versions/1.9.2-p290/lib/ruby/gems/1.9.1/gems/cucumber-1.1.0/lib/cucumber/runtime/support_code.rb:82:in `each'
/Users/yannis/.rbenv/versions/1.9.2-p290/lib/ruby/gems/1.9.1/gems/cucumber-1.1.0/lib/cucumber/runtime/support_code.rb:82:in `load_files!'
/Users/yannis/.rbenv/versions/1.9.2-p290/lib/ruby/gems/1.9.1/gems/cucumber-1.1.0/lib/cucumber/runtime.rb:137:in `load_step_definitions'
/Users/yannis/.rbenv/versions/1.9.2-p290/lib/ruby/gems/1.9.1/gems/cucumber-1.1.0/lib/cucumber/runtime.rb:39:in `run!'
/Users/yannis/.rbenv/versions/1.9.2-p290/lib/ruby/gems/1.9.1/gems/cucumber-1.1.0/lib/cucumber/cli/main.rb:43:in `execute!'
/Users/yannis/.rbenv/versions/1.9.2-p290/lib/ruby/gems/1.9.1/gems/cucumber-1.1.0/lib/cucumber/cli/main.rb:20:in `execute'
/Users/yannis/.rbenv/versions/1.9.2-p290/lib/ruby/gems/1.9.1/gems/cucumber-1.1.0/bin/cucumber:14:in `<top (required)>'
/Users/yannis/.rbenv/versions/1.9.2-p290/bin/cucumber:19:in `load'
/Users/yannis/.rbenv/versions/1.9.2-p290/bin/cucumber:19:in `<main>'
Yanniss-MacBook:rechnungen yannis$ 

Minitest已安装:

Yanniss-MacBook:rechnungen yannis$ gem list minitest

*** LOCAL GEMS ***

minitest (2.6.1)

并且Google没有返回任何内容...我需要您的帮助...

非常感谢, 汤姆

I have git a little problem running Cucumber. When using cucumber I get the following results:

    Yanniss-MacBook:rechnungen yannis$ cucumber
Using the default profile...
/Users/yannis/.rbenv/versions/1.9.2-p290/lib/ruby/gems/1.9.1/gems/rack-1.3.4/lib/rack/backports/uri/common_192.rb:53: warning: already initialized constant WFKV_
MiniTest v1.6.0 is out of date.
`gem install minitest` and add `gem 'minitest' to you test helper. (RuntimeError)
/Users/yannis/.rbenv/versions/1.9.2-p290/lib/ruby/gems/1.9.1/gems/turn-0.8.3/lib/turn/autorun/minitest.rb:14:in `<top (required)>'
/Users/yannis/.rbenv/versions/1.9.2-p290/lib/ruby/gems/1.9.1/gems/activesupport-3.1.1/lib/active_support/dependencies.rb:240:in `require'
/Users/yannis/.rbenv/versions/1.9.2-p290/lib/ruby/gems/1.9.1/gems/activesupport-3.1.1/lib/active_support/dependencies.rb:240:in `block in require'
/Users/yannis/.rbenv/versions/1.9.2-p290/lib/ruby/gems/1.9.1/gems/activesupport-3.1.1/lib/active_support/dependencies.rb:225:in `load_dependency'
/Users/yannis/.rbenv/versions/1.9.2-p290/lib/ruby/gems/1.9.1/gems/activesupport-3.1.1/lib/active_support/dependencies.rb:240:in `require'
/Users/yannis/.rbenv/versions/1.9.2-p290/lib/ruby/gems/1.9.1/gems/turn-0.8.3/lib/turn.rb:13:in `<top (required)>'
/Users/yannis/.rbenv/versions/1.9.2-p290/lib/ruby/gems/1.9.1/gems/activesupport-3.1.1/lib/active_support/dependencies.rb:240:in `require'
/Users/yannis/.rbenv/versions/1.9.2-p290/lib/ruby/gems/1.9.1/gems/activesupport-3.1.1/lib/active_support/dependencies.rb:240:in `block in require'
/Users/yannis/.rbenv/versions/1.9.2-p290/lib/ruby/gems/1.9.1/gems/activesupport-3.1.1/lib/active_support/dependencies.rb:225:in `load_dependency'
/Users/yannis/.rbenv/versions/1.9.2-p290/lib/ruby/gems/1.9.1/gems/activesupport-3.1.1/lib/active_support/dependencies.rb:240:in `require'
/Users/yannis/.rbenv/versions/1.9.2-p290/lib/ruby/gems/1.9.1/gems/railties-3.1.1/lib/rails/test_help.rb:19:in `<top (required)>'
/Users/yannis/.rbenv/versions/1.9.2-p290/lib/ruby/gems/1.9.1/gems/activesupport-3.1.1/lib/active_support/dependencies.rb:240:in `require'
/Users/yannis/.rbenv/versions/1.9.2-p290/lib/ruby/gems/1.9.1/gems/activesupport-3.1.1/lib/active_support/dependencies.rb:240:in `block in require'
/Users/yannis/.rbenv/versions/1.9.2-p290/lib/ruby/gems/1.9.1/gems/activesupport-3.1.1/lib/active_support/dependencies.rb:225:in `load_dependency'
/Users/yannis/.rbenv/versions/1.9.2-p290/lib/ruby/gems/1.9.1/gems/activesupport-3.1.1/lib/active_support/dependencies.rb:240:in `require'
/Users/yannis/.rbenv/versions/1.9.2-p290/lib/ruby/gems/1.9.1/gems/cucumber-rails-1.1.1/lib/cucumber/rails.rb:11:in `<top (required)>'
/Users/yannis/.rbenv/versions/1.9.2-p290/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:59:in `require'
/Users/yannis/.rbenv/versions/1.9.2-p290/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:59:in `rescue in require'
/Users/yannis/.rbenv/versions/1.9.2-p290/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:35:in `require'
/Users/yannis/Sites/rechnungen/features/support/env.rb:7:in `<top (required)>'
/Users/yannis/.rbenv/versions/1.9.2-p290/lib/ruby/gems/1.9.1/gems/cucumber-1.1.0/lib/cucumber/rb_support/rb_language.rb:143:in `load'
/Users/yannis/.rbenv/versions/1.9.2-p290/lib/ruby/gems/1.9.1/gems/cucumber-1.1.0/lib/cucumber/rb_support/rb_language.rb:143:in `load_code_file'
/Users/yannis/.rbenv/versions/1.9.2-p290/lib/ruby/gems/1.9.1/gems/cucumber-1.1.0/lib/cucumber/runtime/support_code.rb:171:in `load_file'
/Users/yannis/.rbenv/versions/1.9.2-p290/lib/ruby/gems/1.9.1/gems/cucumber-1.1.0/lib/cucumber/runtime/support_code.rb:83:in `block in load_files!'
/Users/yannis/.rbenv/versions/1.9.2-p290/lib/ruby/gems/1.9.1/gems/cucumber-1.1.0/lib/cucumber/runtime/support_code.rb:82:in `each'
/Users/yannis/.rbenv/versions/1.9.2-p290/lib/ruby/gems/1.9.1/gems/cucumber-1.1.0/lib/cucumber/runtime/support_code.rb:82:in `load_files!'
/Users/yannis/.rbenv/versions/1.9.2-p290/lib/ruby/gems/1.9.1/gems/cucumber-1.1.0/lib/cucumber/runtime.rb:137:in `load_step_definitions'
/Users/yannis/.rbenv/versions/1.9.2-p290/lib/ruby/gems/1.9.1/gems/cucumber-1.1.0/lib/cucumber/runtime.rb:39:in `run!'
/Users/yannis/.rbenv/versions/1.9.2-p290/lib/ruby/gems/1.9.1/gems/cucumber-1.1.0/lib/cucumber/cli/main.rb:43:in `execute!'
/Users/yannis/.rbenv/versions/1.9.2-p290/lib/ruby/gems/1.9.1/gems/cucumber-1.1.0/lib/cucumber/cli/main.rb:20:in `execute'
/Users/yannis/.rbenv/versions/1.9.2-p290/lib/ruby/gems/1.9.1/gems/cucumber-1.1.0/bin/cucumber:14:in `<top (required)>'
/Users/yannis/.rbenv/versions/1.9.2-p290/bin/cucumber:19:in `load'
/Users/yannis/.rbenv/versions/1.9.2-p290/bin/cucumber:19:in `<main>'
Yanniss-MacBook:rechnungen yannis$ 

Minitest is installed:

Yanniss-MacBook:rechnungen yannis$ gem list minitest

*** LOCAL GEMS ***

minitest (2.6.1)

And Google doesn't return anything... I need your help...

Thanks a lot,
Tom

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

万劫不复 2024-12-15 21:09:53

我通过在我的 Gemfile 中应用悲观版本约束来修复此问题:

group :test do
  gem 'turn', '< 0.8.3'
end

更新:根据 < a href="https://github.com/TwP/turn/issues/59" rel="nofollow">维护者:

技术上.. MiniTest 是一个可选依赖项.. 通常不会成为问题.. 但Ruby 附带的MiniTest 远远落后于Turn 需要的最新版本的MiniTest。由于现在几乎每个人都已转向 MiniTest,我将简单地将其添加为依赖项。

我还没有验证上面的内容,因为我现在使用rspec。

I fixed this by applying a Pessimistic Version Constraint to turn in my Gemfile:

group :test do
  gem 'turn', '< 0.8.3'
end

Update: The version constraint should no longer be necessary, according to a maintainer:

Technically .. MiniTest is an optional dependency .. It would not normally be an issue .. but the MiniTest shipped with Ruby is well behind the latest version of MiniTest, which Turn needs. Since almost everyone has moved to MiniTest now, I will simply add it as a dependency.

I haven't verified the above because I use rspec now.

愿与i 2024-12-15 21:09:53

我是 Ruby on Rails 的新手。
我遇到了同样的问题,我为解决这个问题所做的是:
- 我在 Gemfile 中放入以下内容:gem 'minitest'

Heber

I'm new on Ruby on Rails.
I had the same problem and what I did to solve this was:
- I put in Gemfile the following: gem 'minitest'

Heber

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文