我正在与 Rspec 书一起工作。在第 19 章中,他们为 Rails 项目建立了一个测试环境
group :development, :test do
gem "rspec-rails", "2.0.0"
gem "cucumber-rails", "0.3.2"
gem "webrat", "0.7.2"
end
当我尝试运行 cucumber 时出现此错误。
bundle exec rake cucumber
/Users/kk/.rbenv/versions/1.9.3-p327/bin/ruby -S bundle exec cucumber --profile default
Using the default profile...
Rack::File headers parameter replaces cache_control after Rack 1.5.
uninitialized constant ActionController::Dispatcher (NameError)
这部分错误信息...
Rack::File headers parameter replaces cache_control after Rack 1.5.
... 很常见(根据谷歌搜索)。但是,我可以找到与我的开发环境相关的任何信息。谁能解释
这是我的宝石文件
source 'https://rubygems.org'
gem 'rails', '3.2.11'
# Bundle edge Rails instead:
# gem 'rails', :git => 'git://github.com/rails/rails.git'
gem 'sqlite3'
# Gems used only for assets and not required
# in production environments by default.
group :assets do
gem 'sass-rails', '~> 3.2.3'
gem 'coffee-rails', '~> 3.2.1'
gem 'uglifier', '>= 1.0.3'
end
gem 'jquery-rails'
group :development, :test do
gem "rspec-rails", "2.0.0"
gem "cucumber-rails", "0.3.2"
gem "webrat", "0.7.2"
end