Sha256: af7d253ced18232075007083dd416d4eaac25157dfee2795b1e0da3790426284

Contents?: true

Size: 782 Bytes

Versions: 16

Compression:

Stored size: 782 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'
<% end -%>

Version data entries

16 entries across 16 versions & 6 rubygems

Version Path
aslakhellesoy-cucumber-0.3.10 rails_generators/cucumber/templates/env.rb
aslakhellesoy-cucumber-0.3.11.1 rails_generators/cucumber/templates/env.rb
aslakhellesoy-cucumber-0.3.11.3 rails_generators/cucumber/templates/env.rb
aslakhellesoy-cucumber-0.3.11.5 rails_generators/cucumber/templates/env.rb
aslakhellesoy-cucumber-0.3.11.6 rails_generators/cucumber/templates/env.rb
aslakhellesoy-cucumber-0.3.11 rails_generators/cucumber/templates/env.rb
aslakhellesoy-cucumber-0.3.9.5 rails_generators/cucumber/templates/env.rb
jwilger-cucumber-0.3.11.200906161550 rails_generators/cucumber/templates/env.rb
jwilger-cucumber-0.3.11.200907091518 rails_generators/cucumber/templates/env.rb
kosmas58-cucumber-0.3.11.3 rails_generators/cucumber/templates/env.rb
kosmas58-cucumber-0.3.11.6 rails_generators/cucumber/templates/env.rb
square-cucumber-0.3.12.2 rails_generators/cucumber/templates/env.rb
squirrel-cucumber-0.3.12.1 rails_generators/cucumber/templates/env.rb
squirrel-cucumber-0.3.12 rails_generators/cucumber/templates/env.rb
cucumber-0.3.10 rails_generators/cucumber/templates/env.rb
cucumber-0.3.11 rails_generators/cucumber/templates/env.rb