Sha256: 09b2c2015d1ad642197d9f15727aeadd67b697daacccec36527b7042c05f8285
Contents?: true
Size: 962 Bytes
Versions: 6
Compression:
Stored size: 962 Bytes
Contents
require 'rubygems' require 'spork' Spork.prefork do # Sets up the Rails environment for Cucumber ENV["RAILS_ENV"] ||= "cucumber" require File.expand_path(File.dirname(__FILE__) + '/../../config/environment') require 'webrat' Webrat.configure do |config| config.mode = :rails end require 'webrat/core/matchers' require 'cucumber' # Comment out the next line if you don't want Cucumber Unicode support require 'cucumber/formatter/unicode' require 'spec/rails' require 'cucumber/rails/rspec' end Spork.each_run do # This code will be run each time you run your specs. require 'cucumber/rails/world' # 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 end
Version data entries
6 entries across 6 versions & 2 rubygems