aslakhellesoy-cucumber 0.3.7 → 0.3.7.1

Sign up to get free protection for your applications and to get access to all the features.
data/History.txt CHANGED
@@ -1,3 +1,8 @@
1
+ == 0.3.8 (Git)
2
+
3
+ === New Features
4
+ * Rails generator creates a cucumber environment file to avoid potential cache_classes conflicts in test.rb (#165, Ben Mabey)
5
+
1
6
  == 0.3.7 2009-05-22
2
7
 
3
8
  This is the "Help JetBrains RubyMine" release!
data/Manifest.txt CHANGED
@@ -332,6 +332,7 @@ rails_generators/cucumber/USAGE
332
332
  rails_generators/cucumber/cucumber_generator.rb
333
333
  rails_generators/cucumber/templates/cucumber
334
334
  rails_generators/cucumber/templates/cucumber.rake
335
+ rails_generators/cucumber/templates/cucumber_environment.rb
335
336
  rails_generators/cucumber/templates/env.rb
336
337
  rails_generators/cucumber/templates/paths.rb
337
338
  rails_generators/cucumber/templates/webrat_steps.rb
@@ -3,7 +3,7 @@ module Cucumber #:nodoc:
3
3
  MAJOR = 0
4
4
  MINOR = 3
5
5
  TINY = 7
6
- PATCH = nil # Set to nil for official release
6
+ PATCH = 1 # Set to nil for official release
7
7
 
8
8
  STRING = [MAJOR, MINOR, TINY, PATCH].compact.join('.')
9
9
  end
@@ -11,6 +11,9 @@ class CucumberGenerator < Rails::Generator::Base
11
11
  record do |m|
12
12
  m.directory 'features/step_definitions'
13
13
  m.template 'webrat_steps.rb', 'features/step_definitions/webrat_steps.rb'
14
+ m.template 'cucumber_environment.rb', 'config/environments/cucumber.rb'
15
+ m.gsub_file 'config/database.yml', /test:.*\n/, "test: &TEST\n"
16
+ m.gsub_file 'config/database.yml', /\z/, "\ncucumber:\n <<: *TEST"
14
17
 
15
18
  m.directory 'features/support'
16
19
  m.template 'env.rb', 'features/support/env.rb'
@@ -0,0 +1,16 @@
1
+ config.cache_classes = true # This must be true for Cucumber to operate correctly!
2
+
3
+ # Log error messages when you accidentally call methods on nil.
4
+ config.whiny_nils = true
5
+
6
+ # Show full error reports and disable caching
7
+ config.action_controller.consider_all_requests_local = true
8
+ config.action_controller.perform_caching = false
9
+
10
+ # Disable request forgery protection in test environment
11
+ config.action_controller.allow_forgery_protection = false
12
+
13
+ # Tell Action Mailer not to deliver emails to the real world.
14
+ # The :test delivery method accumulates sent emails in the
15
+ # ActionMailer::Base.deliveries array.
16
+ config.action_mailer.delivery_method = :test
@@ -1,5 +1,5 @@
1
1
  # Sets up the Rails environment for Cucumber
2
- ENV["RAILS_ENV"] ||= "test"
2
+ ENV["RAILS_ENV"] ||= "cucumber"
3
3
  require File.expand_path(File.dirname(__FILE__) + '/../../config/environment')
4
4
  require 'cucumber/rails/world'
5
5
  require 'cucumber/formatter/unicode' # Comment out this line if you don't want Cucumber Unicode support
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aslakhellesoy-cucumber
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.7
4
+ version: 0.3.7.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - "Aslak Helles\xC3\xB8y"
@@ -409,6 +409,7 @@ files:
409
409
  - rails_generators/cucumber/cucumber_generator.rb
410
410
  - rails_generators/cucumber/templates/cucumber
411
411
  - rails_generators/cucumber/templates/cucumber.rake
412
+ - rails_generators/cucumber/templates/cucumber_environment.rb
412
413
  - rails_generators/cucumber/templates/env.rb
413
414
  - rails_generators/cucumber/templates/paths.rb
414
415
  - rails_generators/cucumber/templates/webrat_steps.rb