Sha256: ca93ac8dde30b815bb59d860bba6561e7c2836831536fcb31ce849c78700a930

Contents?: true

Size: 697 Bytes

Versions: 35

Compression:

Stored size: 697 Bytes

Contents

# Sets up the Rails environment for Cucumber
ENV["RAILS_ENV"] ||= "test"
require File.expand_path(File.dirname(__FILE__) + '/../../config/environment')
require 'cucumber/rails/world'
require 'cucumber/formatter/unicode' # Comment out this line if you don't want Cucumber Unicode support
Cucumber::Rails.use_transactional_fixtures
Cucumber::Rails.bypass_rescue # Comment out this line if you want Rails own error handling 
                              # (e.g. rescue_action_in_public / rescue_responses / rescue_from)

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

35 entries across 35 versions & 5 rubygems

Version Path
aslakhellesoy-cucumber-0.3.6.1 rails_generators/cucumber/templates/env.rb
aslakhellesoy-cucumber-0.3.7 rails_generators/cucumber/templates/env.rb
cavalle-cucumber-0.2.3.3.1 rails_generators/cucumber/templates/env.rb
cavalle-cucumber-0.2.3.3.2 rails_generators/cucumber/templates/env.rb
fcoury-cucumber-0.2.3.1 rails_generators/cucumber/templates/env.rb
kosmas58-cucumber-0.2.3.3 rails_generators/cucumber/templates/env.rb
cucumber-0.2.3 rails_generators/cucumber/templates/env.rb
cucumber-0.3.0 rails_generators/cucumber/templates/env.rb
cucumber-0.3.1 rails_generators/cucumber/templates/env.rb
cucumber-0.3.6 rails_generators/cucumber/templates/env.rb
cucumber-0.3.2 rails_generators/cucumber/templates/env.rb
cucumber-0.3.4 rails_generators/cucumber/templates/env.rb
cucumber-0.3.3 rails_generators/cucumber/templates/env.rb
cucumber-0.3.5 rails_generators/cucumber/templates/env.rb
cucumber-0.3.7 rails_generators/cucumber/templates/env.rb