Sha256: 1e740ca9f516a1d1e7bec4b5d2b14c359515bed1334108cdde2fab7e453234a0
Contents?: true
Size: 1.23 KB
Versions: 8
Compression:
Stored size: 1.23 KB
Contents
# Sets up the Rails environment for Cucumber ENV["RAILS_ENV"] ||= "cucumber" require File.expand_path(File.dirname(__FILE__) + '/../../config/environment') require 'cucumber/rails/world' # Whether or not to run each scenario within a database transaction. # # If you leave this to true, you can turn off traqnsactions on a # per-scenario basis, simply tagging it with @no-txn Cucumber::Rails::World.use_transactional_fixtures = true # Whether or not to allow Rails to rescue errors and render them on # an error page. Default is false, which will cause an error to be # raised. # # If you leave this to false, you can turn on Rails rescuing on a # per-scenario basis, simply tagging it with @allow-rescue ActionController::Base.allow_rescue = false # Comment out the next line if you don't want Cucumber Unicode support require 'cucumber/formatter/unicode' require 'webrat' require 'cucumber/webrat/element_locator' # Lets you do table.diff!(element_at('#my_table_or_dl_or_ul_or_ol').to_table) Webrat.configure do |config| config.mode = :rails config.open_error_files = false # Set to true if you want error pages to pop up in the browser end <% if framework == :rspec -%> require 'cucumber/rails/rspec' require 'webrat/core/matchers' <% end -%>
Version data entries
8 entries across 8 versions & 3 rubygems