Skip to content

Commit

Permalink
Commit a couple of neglected Cucumber files. [#53]
Browse files Browse the repository at this point in the history
  • Loading branch information
marnen committed Sep 2, 2011
1 parent be4fe8f commit bb9ca2c
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 0 deletions.
23 changes: 23 additions & 0 deletions config/environments/cucumber.rb
@@ -0,0 +1,23 @@
config.cache_classes = true # This must be true for Cucumber to operate correctly!

# Log error messages when you accidentally call methods on nil.
config.whiny_nils = true

# Show full error reports and disable caching
config.action_controller.consider_all_requests_local = true
config.action_controller.perform_caching = false

# Disable request forgery protection in test environment
config.action_controller.allow_forgery_protection = false

# Tell Action Mailer not to deliver emails to the real world.
# The :test delivery method accumulates sent emails in the
# ActionMailer::Base.deliveries array.
config.action_mailer.delivery_method = :test

config.gem 'cucumber', :lib => false, :version => '>=0.3.104' unless File.directory?(File.join(Rails.root, 'vendor/plugins/cucumber'))
config.gem 'webrat', :lib => false, :version => '>=0.5.0' unless File.directory?(File.join(Rails.root, 'vendor/plugins/webrat'))
config.gem 'rspec', :lib => false, :version => '>=1.2.8' unless File.directory?(File.join(Rails.root, 'vendor/plugins/rspec'))
config.gem 'rspec-rails', :lib => false, :version => '>=1.2.7.1' unless File.directory?(File.join(Rails.root, 'vendor/plugins/rspec-rails'))

config.gem 'ffaker'
6 changes: 6 additions & 0 deletions features/support/additional_cucumber_setup.rb
@@ -0,0 +1,6 @@
# Require spec_helper so we can use blueprints.
require "#{RAILS_ROOT}/spec/blueprints"

# Set Gettext stuff so we can load Web pages.
FastGettext.text_domain ||= SITE_TITLE
FastGettext.available_locales ||= ['en']

0 comments on commit bb9ca2c

Please sign in to comment.