我正在尝试运行测试功能。“捆绑exec黄瓜功能”启动失败异常(在登录期间),它无法识别现有用户。如果我运行单个功能文件它工作正常。我做错了什么?
宝石文件:
group :test do
gem 'ruby-prof'
gem 'cucumber-rails', :require => false
gem 'cucumber'
gem 'spork'
gem 'launchy'
gem 'capybara'
gem 'selenium-webdriver'
gem 'selenium-client'
gem 'database_cleaner'
gem 'email_spec', :branch=>'rails3'
end
在env.rb中
begin
DatabaseCleaner.strategy = :transaction
rescue NameError
raise "You need to add database_cleaner to your Gemfile (in the :test group) if you wish to use it."
end