Sha256: 577dc3d1e39750ba112b7bf811e835a84f775c63b3746ffb247683fe6683af58
Contents?: true
Size: 1.3 KB
Versions: 2
Compression:
Stored size: 1.3 KB
Contents
# IMPORTANT: This file is generated by cucumber-rails - edit at your own peril. # It is recommended to regenerate this file in the future when you upgrade to a # newer version of cucumber-rails. Consider adding your own code to a new file # instead of editing this one. Cucumber will automatically load all features/**/*.rb # files. ENV['RAILS_ENV'] ||= 'test' PROJECT_ROOT = File.expand_path('../../..', __FILE__) $LOAD_PATH << File.join(PROJECT_ROOT, 'lib') require 'rails/all' Bundler.require require 'diesel/testing' require 'diesel/testing/integration' require 'cucumber/rails/application' require 'cucumber/rails/action_controller' require 'rails/test_help' require 'cucumber/rails/world' require 'cucumber/rails/hooks' require 'cucumber/rails/capybara' # Capybara defaults to XPath selectors rather than Webrat's default of CSS3. In # order to ease the transition to Capybara we set the default here. If you'd # prefer to use XPath just remove this line and adjust any selectors in your # steps to use the XPath syntax. Capybara.default_selector = :css Capybara.save_and_open_page_path = 'tmp' ActionController::Base.allow_rescue = false 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
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
clearance-1.0.0.rc2 | features/support/env.rb |
clearance-1.0.0.rc1 | features/support/env.rb |