Sha256: 894056ab2b26315cda74f58795ce06d609a96d3df5c270d338dcd786ff99ed2d

Contents?: true

Size: 876 Bytes

Versions: 1

Compression:

Stored size: 876 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'

Webrat.configure do |config|
  config.mode = :rails
end
<% if framework == :rspec -%>

require 'cucumber/rails/rspec'
require 'webrat/core/matchers'
require 'cucumber/webrat/table_locator' # Lets you do table.diff!(table_at('#my_table').to_a)
<% end -%>

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
aslakhellesoy-cucumber-0.3.11.200907091518 rails_generators/cucumber/templates/env.rb