Sha256: 30763a179c0a427e880743ee6be1fd8f999b55be426426d50c8705e2a7166e0c

Contents?: true

Size: 1.03 KB

Versions: 20

Compression:

Stored size: 1.03 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/table_locator' # Lets you do table.diff!(table_at('#my_table').to_a)
 
  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.
  require 'cucumber/rails/world'

  # 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

20 entries across 20 versions & 6 rubygems

Version Path
aslakhellesoy-cucumber-0.3.92 rails_generators/cucumber/templates/spork_env.rb
aslakhellesoy-cucumber-0.3.93.1 rails_generators/cucumber/templates/spork_env.rb
aslakhellesoy-cucumber-0.3.93 rails_generators/cucumber/templates/spork_env.rb
aslakhellesoy-cucumber-0.3.94 rails_generators/cucumber/templates/spork_env.rb
kosmas58-cucumber-0.3.92 rails_generators/cucumber/templates/spork_env.rb
kosmas58-cucumber-0.3.93.1 rails_generators/cucumber/templates/spork_env.rb
kosmas58-cucumber-0.3.94 rails_generators/cucumber/templates/spork_env.rb
square-cucumber-0.3.93.1.1 rails_generators/cucumber/templates/spork_env.rb
square-cucumber-0.3.93.1 rails_generators/cucumber/templates/spork_env.rb
yhara-moneyrail-0.0.2 features/support/env.rb
moneyrail-0.1.6 features/support/env.rb
moneyrail-0.1.5 features/support/env.rb
moneyrail-0.1.4 features/support/env.rb
moneyrail-0.1.2 features/support/env.rb
moneyrail-0.1.1 features/support/env.rb
moneyrail-0.1.0 features/support/env.rb
moneyrail-0.0.2 features/support/env.rb
cucumber-0.3.94 rails_generators/cucumber/templates/spork_env.rb
cucumber-0.3.92 rails_generators/cucumber/templates/spork_env.rb
cucumber-0.3.93 rails_generators/cucumber/templates/spork_env.rb