aslakhellesoy-cucumber 0.3.8 → 0.3.9
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
@@ -1,3 +1,12 @@
|
|
1
|
+
== 0.3.9 2009-05-27
|
2
|
+
|
3
|
+
Bugfix release for 0.3.8 released earlier today. 0.3.8 had a bug in the Rails cucumber
|
4
|
+
generator which is fixed in 0.3.9.
|
5
|
+
|
6
|
+
=== Bugfixes
|
7
|
+
* Fix broken Rails cucumber generator (Tim Glen)
|
8
|
+
* The Cucumber Rake task in non-fork mode will properly cause Rake to exit with 1 when Cucumber fails. (Aslak Hellesøy)
|
9
|
+
|
1
10
|
== 0.3.8 2009-05-27
|
2
11
|
|
3
12
|
This Cucumber version fixes several bugs related to Ruby on Rails and RSpec. If you
|
data/lib/cucumber/cli/main.rb
CHANGED
@@ -10,6 +10,10 @@ module Cucumber
|
|
10
10
|
module Cli
|
11
11
|
class Main
|
12
12
|
class << self
|
13
|
+
def step_mother
|
14
|
+
@step_mother
|
15
|
+
end
|
16
|
+
|
13
17
|
def step_mother=(step_mother)
|
14
18
|
@step_mother = step_mother
|
15
19
|
@step_mother.extend(StepMother)
|
@@ -72,15 +76,23 @@ module Cucumber
|
|
72
76
|
@configuration
|
73
77
|
end
|
74
78
|
|
79
|
+
def load_files
|
80
|
+
each_lib{|lib| load(lib)}
|
81
|
+
end
|
82
|
+
|
75
83
|
private
|
76
|
-
|
84
|
+
|
77
85
|
def require_files
|
86
|
+
each_lib{|lib| require lib}
|
87
|
+
end
|
88
|
+
|
89
|
+
def each_lib
|
78
90
|
requires = configuration.files_to_require
|
79
91
|
verbose_log("Ruby files required:")
|
80
92
|
verbose_log(requires.map{|lib| " * #{lib}"}.join("\n"))
|
81
93
|
requires.each do |lib|
|
82
94
|
begin
|
83
|
-
|
95
|
+
yield lib
|
84
96
|
rescue LoadError => e
|
85
97
|
e.message << "\nFailed to load #{lib}"
|
86
98
|
raise e
|
data/lib/cucumber/rake/task.rb
CHANGED
data/lib/cucumber/version.rb
CHANGED
@@ -2,10 +2,9 @@ module Cucumber #:nodoc:
|
|
2
2
|
class VERSION #:nodoc:
|
3
3
|
MAJOR = 0
|
4
4
|
MINOR = 3
|
5
|
-
TINY =
|
5
|
+
TINY = 9
|
6
6
|
PATCH = nil # Set to nil for official release
|
7
7
|
|
8
8
|
STRING = [MAJOR, MINOR, TINY, PATCH].compact.join('.')
|
9
|
-
STABLE_STRING = [MAJOR, MINOR, TINY].join('.')
|
10
9
|
end
|
11
10
|
end
|
@@ -1,4 +1,5 @@
|
|
1
1
|
require 'rbconfig'
|
2
|
+
require 'cucumber/version'
|
2
3
|
|
3
4
|
# This generator bootstraps a Rails project for use with Cucumber
|
4
5
|
class CucumberGenerator < Rails::Generator::Base
|
@@ -11,7 +12,9 @@ class CucumberGenerator < Rails::Generator::Base
|
|
11
12
|
record do |m|
|
12
13
|
m.directory 'features/step_definitions'
|
13
14
|
m.template 'webrat_steps.rb', 'features/step_definitions/webrat_steps.rb'
|
14
|
-
m.template 'cucumber_environment.rb', 'config/environments/cucumber.rb'
|
15
|
+
m.template 'cucumber_environment.rb', 'config/environments/cucumber.rb',
|
16
|
+
:assigns => { :cucumber_version => ::Cucumber::VERSION::STRING }
|
17
|
+
|
15
18
|
m.gsub_file 'config/database.yml', /test:.*\n/, "test: &TEST\n"
|
16
19
|
m.gsub_file 'config/database.yml', /\z/, "\ncucumber:\n <<: *TEST"
|
17
20
|
|
@@ -15,7 +15,7 @@ config.action_controller.allow_forgery_protection = false
|
|
15
15
|
# ActionMailer::Base.deliveries array.
|
16
16
|
config.action_mailer.delivery_method = :test
|
17
17
|
|
18
|
-
config.gem "cucumber", :lib => false, :version => ">=<%=
|
18
|
+
config.gem "cucumber", :lib => false, :version => ">=<%= cucumber_version %>"
|
19
19
|
config.gem "webrat", :lib => false, :version => ">=0.4.4"
|
20
20
|
config.gem "rspec", :lib => false, :version => ">=1.2.6"
|
21
21
|
config.gem "rspec-rails", :lib => 'spec/rails', :version => ">=1.2.6"
|