gpt4 book ai didi

ruby-on-rails - cucumber 加载错误 activesupport

转载 作者:行者123 更新时间:2023-12-04 06:14:59 25 4
gpt4 key购买 nike

我是 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。我不明白 bundle exec 消息。

谢谢

最佳答案

尝试:

bundler exec cucumber features

它应该可以正常工作。请查看 docs想要查询更多的信息。

关于ruby-on-rails - cucumber 加载错误 activesupport,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/7373498/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com