diff options
author | Joachim Filip Ignacy Bartosik <jbartosik@gmail.com> | 2010-06-11 21:46:09 +0200 |
---|---|---|
committer | Joachim Filip Ignacy Bartosik <jbartosik@gmail.com> | 2010-06-22 22:19:26 +0200 |
commit | 404170b24321e91e2caa07f181b593ada187d44d (patch) | |
tree | d3954b40c763edc3df277e6113203decc844bf6f /config | |
parent | Switch to Rails 2.3.8 (diff) | |
download | recruiting-webapp-404170b24321e91e2caa07f181b593ada187d44d.tar.gz recruiting-webapp-404170b24321e91e2caa07f181b593ada187d44d.tar.bz2 recruiting-webapp-404170b24321e91e2caa07f181b593ada187d44d.zip |
Cucumber infrastructure
Diffstat (limited to 'config')
-rw-r--r-- | config/cucumber.yml | 8 | ||||
-rw-r--r-- | config/environments/cucumber.rb | 30 |
2 files changed, 38 insertions, 0 deletions
diff --git a/config/cucumber.yml b/config/cucumber.yml new file mode 100644 index 0000000..621a14c --- /dev/null +++ b/config/cucumber.yml @@ -0,0 +1,8 @@ +<% +rerun = File.file?('rerun.txt') ? IO.read('rerun.txt') : "" +rerun_opts = rerun.to_s.strip.empty? ? "--format #{ENV['CUCUMBER_FORMAT'] || 'progress'} features" : "--format #{ENV['CUCUMBER_FORMAT'] || 'pretty'} #{rerun}" +std_opts = "--format #{ENV['CUCUMBER_FORMAT'] || 'progress'} --strict --tags ~@wip" +%> +default: <%= std_opts %> features +wip: --tags @wip:3 --wip features +rerun: <%= rerun_opts %> --format rerun --out rerun.txt --strict --tags ~@wip diff --git a/config/environments/cucumber.rb b/config/environments/cucumber.rb new file mode 100644 index 0000000..34da224 --- /dev/null +++ b/config/environments/cucumber.rb @@ -0,0 +1,30 @@ +# Edit at your own peril - it's recommended to regenerate this file +# in the future when you upgrade to a newer version of Cucumber. + +# IMPORTANT: Setting config.cache_classes to false is known to +# break Cucumber's use_transactional_fixtures method. +# For more information see https://rspec.lighthouseapp.com/projects/16211/tickets/165 +config.cache_classes = true + +# 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-rails', :lib => false, :version => '>=0.3.1' unless File.directory?(File.join(Rails.root, 'vendor/plugins/cucumber-rails')) +config.gem 'database_cleaner', :lib => false, :version => '>=0.5.0' unless File.directory?(File.join(Rails.root, 'vendor/plugins/database_cleaner')) +config.gem 'webrat', :lib => false, :version => '>=0.7.0' unless File.directory?(File.join(Rails.root, 'vendor/plugins/webrat')) +config.gem 'rspec', :lib => false, :version => '>=1.3.0' unless File.directory?(File.join(Rails.root, 'vendor/plugins/rspec')) +config.gem 'rspec-rails', :lib => false, :version => '>=1.3.2' unless File.directory?(File.join(Rails.root, 'vendor/plugins/rspec-rails')) + +config.action_mailer.default_url_options = { :host => 'localhost', :port => '3000' } |