Sha256: fe68b93ae949467408c9369fb900a9ef8ab5ad23c81c928b07abc6ff2b65c6d1
Contents?: true
Size: 902 Bytes
Versions: 24
Compression:
Stored size: 902 Bytes
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' # Comment out the next line if you don't want Cucumber Unicode support require 'cucumber/formatter/unicode' # Comment out the next line if you don't want transactions to # open/roll back around each scenario Cucumber::Rails.use_transactional_fixtures # Comment out the next line if you want Rails' own error handling # (e.g. rescue_action_in_public / rescue_responses / rescue_from) Cucumber::Rails.bypass_rescue 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 end <% if framework == :rspec -%> require 'cucumber/rails/rspec' require 'webrat/core/matchers' <% end -%>
Version data entries
24 entries across 24 versions & 6 rubygems