aslakhellesoy-cucumber 0.3.7 → 0.3.7.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/History.txt
CHANGED
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
|
data/lib/cucumber/version.rb
CHANGED
@@ -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"] ||= "
|
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
|