rails_generators/cucumber/templates/env.rb in cucumber-0.1.15 vs rails_generators/cucumber/templates/env.rb in cucumber-0.1.16

- old
+ new

@@ -3,10 +3,14 @@ require File.expand_path(File.dirname(__FILE__) + '/../../config/environment') require 'cucumber/rails/world' require 'cucumber/formatters/unicode' # Comment out this line if you don't want Cucumber Unicode support Cucumber::Rails.use_transactional_fixtures -require 'webrat/rails' +require 'webrat' + +Webrat.configure do |config| + config.mode = :rails +end # Comment out the next two lines if you're not using RSpec's matchers (should / should_not) in your steps. require 'cucumber/rails/rspec' require 'webrat/rspec-rails'