Sha256: 453d6bc1b49ab36d774e561fe18889c86c8d06ab15df1437bd66e6f83ea20526

Contents?: true

Size: 1.04 KB

Versions: 5

Compression:

Stored size: 1.04 KB

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'

# 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'
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 'cucumber/rails/rspec'
require 'webrat/core/matchers'

# email testing in cucumber
require File.expand_path(File.dirname(__FILE__) + '../../../../../lib/email_spec')
require 'email_spec/cucumber'

require File.expand_path(File.dirname(__FILE__) +'/../../spec/model_factory.rb')
World(Fixjour)

Version data entries

5 entries across 5 versions & 2 rubygems

Version Path
bmabey-email_spec-0.3.1 examples/rails_root/features/support/env.rb
bmabey-email_spec-0.3.2 examples/rails_root/features/support/env.rb
bmabey-email_spec-0.3.3 examples/rails_root/features/support/env.rb
bmabey-email_spec-0.3.4 examples/rails_root/features/support/env.rb
email_spec-0.3.1 examples/rails_root/features/support/env.rb