Sha256: 0e8cb053bf8c0bdbfb653800aaae98ac4ec59d8f984cd8798df97db5a7f27405

Contents?: true

Size: 1.02 KB

Versions: 30

Compression:

Stored size: 1.02 KB

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'
  require 'cucumber/webrat/element_locator' # Lets you do table.diff!(element_at('#my_table_or_dl_or_ul_or_ol').to_table)
 
  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.

  # 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

30 entries across 30 versions & 5 rubygems

Version Path
aslakhellesoy-cucumber-0.3.100 rails_generators/cucumber/templates/spork_env.rb
aslakhellesoy-cucumber-0.3.101.2 rails_generators/cucumber/templates/spork_env.rb
aslakhellesoy-cucumber-0.3.101 rails_generators/cucumber/templates/spork_env.rb
aslakhellesoy-cucumber-0.3.102.1 rails_generators/cucumber/templates/spork_env.rb
aslakhellesoy-cucumber-0.3.102.2 rails_generators/cucumber/templates/spork_env.rb
aslakhellesoy-cucumber-0.3.102 rails_generators/cucumber/templates/spork_env.rb
aslakhellesoy-cucumber-0.3.103 rails_generators/cucumber/templates/spork_env.rb
aslakhellesoy-cucumber-0.3.104 rails_generators/cucumber/templates/spork_env.rb
aslakhellesoy-cucumber-0.3.96 rails_generators/cucumber/templates/spork_env.rb
aslakhellesoy-cucumber-0.3.97 rails_generators/cucumber/templates/spork_env.rb
aslakhellesoy-cucumber-0.3.98 rails_generators/cucumber/templates/spork_env.rb
aslakhellesoy-cucumber-0.3.99 rails_generators/cucumber/templates/spork_env.rb
dwaite-cucumber-0.3.101 rails_generators/cucumber/templates/spork_env.rb
engineyard-cucumber-0.3.101 rails_generators/cucumber/templates/spork_env.rb
kosmas58-cucumber-0.3.100 rails_generators/cucumber/templates/spork_env.rb
kosmas58-cucumber-0.3.102 rails_generators/cucumber/templates/spork_env.rb
kosmas58-cucumber-0.3.103 rails_generators/cucumber/templates/spork_env.rb
kosmas58-cucumber-0.3.96 rails_generators/cucumber/templates/spork_env.rb
kosmas58-cucumber-0.3.97 rails_generators/cucumber/templates/spork_env.rb
kosmas58-cucumber-0.3.98 rails_generators/cucumber/templates/spork_env.rb