1

我正在尝试运行测试功能。“bundle exec cucumber features”开始异常失败(在登录本身期间),它无法识别现有用户。如果我运行单个功能文件,它工作正常。我究竟做错了什么?

宝石文件:

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
4

0 回答 0