黄瓜加载错误 activesupport

发布于 2024-12-03 16:22:08 字数 1521 浏览 1 评论 0原文

我是 Rails 新手,在使用 Cucumber 运行测试时遇到问题。我收到以下错误:

You have already activated activesupport 3.1.0, but your Gemfile requires activesupport 3.1.0.rc8. Consider using bundle exec. (Gem::LoadError)

并且我的 gemfile 如下所示:

source 'http://rubygems.org'

gem 'rails', '3.1.0.rc8'

group :assets do
  gem 'sass-rails', "  ~> 3.1.0.rc"
  gem 'coffee-rails', "~> 3.1.0.rc"
  gem 'uglifier'
end
gem 'jquery-rails'
gem "therubyracer", ">= 0.8.2"
gem "haml", ">= 3.1.2"
gem "haml-rails", ">= 0.3.4", :group => :development
gem "rspec-rails", ">= 2.6.1", :group => [:development, :test]
gem "guard-rspec"
gem "database_cleaner", ">= 0.6.7", :group => :test
gem "mongoid-rspec", ">= 1.4.4", :group => :test
gem "factory_girl_rails", ">= 1.1.0", :group => :test
gem "cucumber-rails", ">= 1.0.2", :group => :test
gem "capybara", ">= 1.0.1", :group => :test
gem "launchy", ">= 2.0.5", :group => :test
gem "bson_ext", ">= 1.3.1"
gem "mongoid", ">= 2.1.9"
gem 'devise', :git => 'git://github.com/plataformatec/devise.git', :branch => 'master'
gem "frontend-helpers"
gem "rails-footnotes", ">= 3.7", :group => :development
gem "barista"
gem "sunspot"
gem 'sunspot_rails'
gem "sunspot_mongoid"
gem 'vinova_sunspot_mongoid', :require => 'sunspot_mongoid'
gem "fakeweb", "~> 1.3.0"
gem "sunspot_matchers", "~> 1.2.1.4"

Cucumber 曾经工作过。我最近添加了 sunspot 并升级到了 Rails 3.1.0.rc8。我不明白捆绑执行消息。

谢谢

I am new to rails and I having trouble using cucumber to run my tests. I get the following error:

You have already activated activesupport 3.1.0, but your Gemfile requires activesupport 3.1.0.rc8. Consider using bundle exec. (Gem::LoadError)

and my gemfile looks like the following:

source 'http://rubygems.org'

gem 'rails', '3.1.0.rc8'

group :assets do
  gem 'sass-rails', "  ~> 3.1.0.rc"
  gem 'coffee-rails', "~> 3.1.0.rc"
  gem 'uglifier'
end
gem 'jquery-rails'
gem "therubyracer", ">= 0.8.2"
gem "haml", ">= 3.1.2"
gem "haml-rails", ">= 0.3.4", :group => :development
gem "rspec-rails", ">= 2.6.1", :group => [:development, :test]
gem "guard-rspec"
gem "database_cleaner", ">= 0.6.7", :group => :test
gem "mongoid-rspec", ">= 1.4.4", :group => :test
gem "factory_girl_rails", ">= 1.1.0", :group => :test
gem "cucumber-rails", ">= 1.0.2", :group => :test
gem "capybara", ">= 1.0.1", :group => :test
gem "launchy", ">= 2.0.5", :group => :test
gem "bson_ext", ">= 1.3.1"
gem "mongoid", ">= 2.1.9"
gem 'devise', :git => 'git://github.com/plataformatec/devise.git', :branch => 'master'
gem "frontend-helpers"
gem "rails-footnotes", ">= 3.7", :group => :development
gem "barista"
gem "sunspot"
gem 'sunspot_rails'
gem "sunspot_mongoid"
gem 'vinova_sunspot_mongoid', :require => 'sunspot_mongoid'
gem "fakeweb", "~> 1.3.0"
gem "sunspot_matchers", "~> 1.2.1.4"

Cucumber used to work before. I recently added sunspot and upgraded to rails 3.1.0.rc8. I don't understand bundle exec message.

thanks

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

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

发布评论

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

评论(2

野生奥特曼 2024-12-10 16:22:08

尝试一下:

bundler exec cucumber features

应该可以正常工作。请参阅文档了解更多信息。

Try:

bundler exec cucumber features

It should work fine. Please see docs for more information.

合约呢 2024-12-10 16:22:08

这对我有用:

bundle exec cucumber features

bundle exec cucumber features/filter_movie_list.feature

第一个用于所有功能,第二个用于某些功能。

This what worked for me:

bundle exec cucumber features

bundle exec cucumber features/filter_movie_list.feature

The first one for all features, and the second one for certain feature.

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