我正在阅读Rails 3 in Action eBook,他们非常重视测试,但我似乎无法让Cucumber出于某种原因工作。
当我使用Rake aborted! Stack level too deep
命令时,我一直收到rake cucumber:ok
错误。
有谁知道这可能导致什么?
这是我的宝石文件:
source 'http://rubygems.org'
gem 'rails', '3.1.1.rc1'
# 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.1.0"
gem 'coffee-rails', "~> 3.1.0"
gem 'uglifier', '>= 1.0.3'
end
gem 'jquery-rails'
group :test, :development do
gem 'rspec-rails', '~> 2.5'
end
group :test do
gem 'cucumber-rails'
gem 'capybara'
gem 'database_cleaner'
end
答案 0 :(得分:1)
使用
bundle exec rake cucumber:ok