当我关注 railstutorial.org 学习黄瓜时,测试程序不断崩溃。
当我输入:bundle exec cucumber features/ 来运行 signing_in.feature 时,命令行会抱怨:
堆栈级别太深 (SystemStackError) C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1.gems/cucumber-1.2.4/lib/cucumber/parser/gherkin_builder.rb:100
以下是从我的 gemfile 复制的:
source 'https://rubygems.org'
gem 'rails', '3.2.13'
gem "bootstrap-sass", "~> 2.3.1.0"
gem 'bcrypt-ruby', '~> 3.0.1'
group :development, :test do
gem 'rspec-rails'
end
group :development do
gem 'annotate', '~> 2.5.0'
end
group :assets do
gem 'sass-rails', '~> 3.2.3'
gem 'coffee-rails', '~> 3.2.1'
gem 'uglifier', '>= 1.0.3'
end
gem 'jquery-rails'
gem 'pg', '0.12.2'
group :test do
gem 'capybara', '1.1.2'
gem 'factory_girl_rails', '~> 4.1.0'
gem 'cucumber-rails', '1. :require=>false
gem 'database_cleaner', '0.7.0'
end