cucumber 0.10.7 → 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- data/.rspec +1 -1
- data/.travis.yml +5 -2
- data/Gemfile.lock +10 -10
- data/History.md +4 -1
- data/cucumber.gemspec +3 -3
- data/cucumber.yml +1 -1
- data/features/bootstrap.feature +0 -1
- data/features/step_definitions/cucumber-features/core_steps.rb +110 -29
- data/features/support/env.rb +3 -4
- data/lib/cucumber/formatter/ansicolor.rb +1 -2
- data/lib/cucumber/platform.rb +1 -1
- data/lib/cucumber/rake/task.rb +8 -6
- data/spec/cucumber/ast/background_spec.rb +1 -1
- data/spec/cucumber/ast/doc_string_spec.rb +1 -1
- data/spec/cucumber/ast/feature_spec.rb +1 -1
- data/spec/cucumber/ast/outline_table_spec.rb +1 -1
- data/spec/cucumber/ast/scenario_outline_spec.rb +1 -1
- data/spec/cucumber/ast/scenario_spec.rb +1 -1
- data/spec/cucumber/ast/step_spec.rb +1 -1
- data/spec/cucumber/ast/table_spec.rb +1 -1
- data/spec/cucumber/ast/tree_walker_spec.rb +1 -1
- data/spec/cucumber/broadcaster_spec.rb +1 -1
- data/spec/cucumber/cli/configuration_spec.rb +1 -1
- data/spec/cucumber/cli/drb_client_spec.rb +1 -2
- data/spec/cucumber/cli/main_spec.rb +1 -1
- data/spec/cucumber/cli/options_spec.rb +1 -1
- data/spec/cucumber/cli/profile_loader_spec.rb +1 -1
- data/spec/cucumber/core_ext/proc_spec.rb +1 -1
- data/spec/cucumber/formatter/ansicolor_spec.rb +1 -1
- data/spec/cucumber/formatter/duration_spec.rb +1 -1
- data/spec/cucumber/formatter/html_spec.rb +2 -2
- data/spec/cucumber/formatter/junit_spec.rb +2 -2
- data/spec/cucumber/formatter/progress_spec.rb +1 -1
- data/spec/cucumber/rake/forked_spec.rb +3 -3
- data/spec/cucumber/rake/rcov_spec.rb +3 -3
- data/spec/cucumber/rb_support/rb_language_spec.rb +1 -2
- data/spec/cucumber/rb_support/rb_step_definition_spec.rb +1 -2
- data/spec/cucumber/rb_support/regexp_argument_matcher_spec.rb +1 -1
- data/spec/cucumber/step_match_spec.rb +1 -1
- data/spec/cucumber/wire_support/configuration_spec.rb +1 -1
- data/spec/cucumber/wire_support/connection_spec.rb +1 -1
- data/spec/cucumber/wire_support/wire_exception_spec.rb +1 -1
- data/spec/cucumber/wire_support/wire_language_spec.rb +1 -1
- data/spec/cucumber/wire_support/wire_packet_spec.rb +1 -1
- data/spec/cucumber/wire_support/wire_step_definition_spec.rb +1 -1
- data/spec/cucumber/world/pending_spec.rb +1 -1
- data/spec/spec_helper.rb +12 -1
- metadata +138 -13
data/.rspec
CHANGED
@@ -1 +1 @@
|
|
1
|
-
--color
|
1
|
+
--color --backtrace
|
data/.travis.yml
CHANGED
data/Gemfile.lock
CHANGED
@@ -1,17 +1,17 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
cucumber (0.
|
4
|
+
cucumber (1.0.0)
|
5
5
|
builder (>= 2.1.2)
|
6
6
|
diff-lcs (>= 1.1.2)
|
7
|
-
gherkin (~> 2.4.
|
7
|
+
gherkin (~> 2.4.1)
|
8
8
|
json (>= 1.4.6)
|
9
9
|
term-ansicolor (>= 1.0.5)
|
10
10
|
|
11
11
|
GEM
|
12
12
|
remote: http://rubygems.org/
|
13
13
|
specs:
|
14
|
-
aruba (0.4.
|
14
|
+
aruba (0.4.2)
|
15
15
|
bcat (>= 0.6.1)
|
16
16
|
childprocess (>= 0.1.9)
|
17
17
|
cucumber (>= 0.10.7)
|
@@ -31,14 +31,14 @@ GEM
|
|
31
31
|
ffi (~> 1.0.6)
|
32
32
|
diff-lcs (1.1.2)
|
33
33
|
ffi (1.0.9)
|
34
|
-
gherkin (2.4.
|
34
|
+
gherkin (2.4.1)
|
35
35
|
json (>= 1.4.6)
|
36
36
|
innate (2011.04)
|
37
37
|
rack (>= 1.1.0)
|
38
|
-
json (1.5.
|
39
|
-
json_pure (1.5.
|
38
|
+
json (1.5.3)
|
39
|
+
json_pure (1.5.3)
|
40
40
|
mime-types (1.16)
|
41
|
-
nokogiri (1.4.
|
41
|
+
nokogiri (1.4.6)
|
42
42
|
prawn (0.8.4)
|
43
43
|
prawn-core (< 0.9, >= 0.8.4)
|
44
44
|
prawn-layout (< 0.9, >= 0.8.4)
|
@@ -89,15 +89,15 @@ PLATFORMS
|
|
89
89
|
ruby
|
90
90
|
|
91
91
|
DEPENDENCIES
|
92
|
-
aruba (
|
92
|
+
aruba (~> 0.4.2)
|
93
93
|
bcat (= 0.6.1)
|
94
|
-
capybara (>= 1.0.0
|
94
|
+
capybara (>= 1.0.0)
|
95
95
|
cucumber!
|
96
96
|
nokogiri (>= 1.4.4)
|
97
97
|
prawn (= 0.8.4)
|
98
98
|
prawn-layout (= 0.8.4)
|
99
99
|
rack-test (>= 0.5.7)
|
100
|
-
rake (>= 0.
|
100
|
+
rake (>= 0.9.2)
|
101
101
|
ramaze
|
102
102
|
rdiscount (= 1.6.8)
|
103
103
|
rspec (>= 2.6.0)
|
data/History.md
CHANGED
@@ -1,6 +1,9 @@
|
|
1
|
-
## [
|
1
|
+
## [v1.0.0](https://github.com/cucumber/cucumber/compare/v0.10.6...v1.0.0)
|
2
|
+
|
3
|
+
Yipeeeeeeeee!
|
2
4
|
|
3
5
|
### New Features
|
6
|
+
* Use Rake 1.9.2 for development (Aslak Hellesøy)
|
4
7
|
* Rake task exits with an error if rcov is true and we're on Ruby 1.9.x (Aslak Hellesøy)
|
5
8
|
* Started implementation of cucumber-features (Mike Sassak, Julien Biezemans, Aslak Hellesøy)
|
6
9
|
|
data/cucumber.gemspec
CHANGED
@@ -23,14 +23,14 @@ for important information about this release. Happy cuking!
|
|
23
23
|
|
24
24
|
}
|
25
25
|
|
26
|
-
s.add_dependency 'gherkin', '~> 2.4.
|
26
|
+
s.add_dependency 'gherkin', '~> 2.4.1'
|
27
27
|
s.add_dependency 'term-ansicolor', '>= 1.0.5'
|
28
28
|
s.add_dependency 'builder', '>= 2.1.2'
|
29
29
|
s.add_dependency 'diff-lcs', '>= 1.1.2'
|
30
30
|
s.add_dependency 'json', '>= 1.4.6'
|
31
31
|
|
32
|
-
s.add_development_dependency 'aruba', '
|
33
|
-
s.add_development_dependency 'rake', '>= 0.
|
32
|
+
s.add_development_dependency 'aruba', '~> 0.4.2'
|
33
|
+
s.add_development_dependency 'rake', '>= 0.9.2'
|
34
34
|
s.add_development_dependency 'rspec', '>= 2.6.0'
|
35
35
|
s.add_development_dependency 'nokogiri', '>= 1.4.4'
|
36
36
|
s.add_development_dependency 'prawn', '= 0.8.4'
|
data/cucumber.yml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
<%
|
2
2
|
rerun = File.file?('rerun.txt') ? IO.read('rerun.txt') : ""
|
3
3
|
rerun_opts = rerun.to_s.strip.empty? ? "--format progress features" : "--format pretty #{rerun}"
|
4
|
-
std_opts = "--format
|
4
|
+
std_opts = "--format progress features --tags ~@wip"
|
5
5
|
begin
|
6
6
|
require 'rspec/expectations'
|
7
7
|
std_opts << ' --tags ~@rspec1'
|
data/features/bootstrap.feature
CHANGED
@@ -3,7 +3,6 @@ Feature: Bootstrapping a new project
|
|
3
3
|
As a new cucumber user
|
4
4
|
I want cucumber to give helpful error messages in basic situations
|
5
5
|
|
6
|
-
@announce
|
7
6
|
Scenario: running cucumber against a non-existing feature file
|
8
7
|
Given a directory without standard Cucumber project directory structure
|
9
8
|
When I run `cucumber`
|
@@ -16,53 +16,122 @@ EOF
|
|
16
16
|
write_file("features/a_feature.feature", feature)
|
17
17
|
end
|
18
18
|
|
19
|
-
def
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
19
|
+
def write_passing_mapping(step_name)
|
20
|
+
erb = ERB.new(<<-EOF, nil, '-')
|
21
|
+
Given /<%= step_name -%>/ do
|
22
|
+
# ARUBA_IGNORE_START
|
23
|
+
File.open("<%= step_file(step_name) %>", "w")
|
24
|
+
# ARUBA_IGNORE_END
|
25
|
+
end
|
26
|
+
EOF
|
27
|
+
append_to_file("features/step_definitions/some_stepdefs.rb", erb.result(binding))
|
28
|
+
end
|
29
|
+
|
30
|
+
def write_pending_mapping(step_name)
|
31
|
+
erb = ERB.new(<<-EOF, nil, '-')
|
32
|
+
Given /<%= step_name -%>/ do
|
33
|
+
# ARUBA_IGNORE_START
|
34
|
+
File.open("<%= step_file(step_name) %>", "w")
|
35
|
+
# ARUBA_IGNORE_END
|
36
|
+
pending
|
37
|
+
end
|
38
|
+
EOF
|
39
|
+
append_to_file("features/step_definitions/some_stepdefs.rb", erb.result(binding))
|
40
|
+
end
|
41
|
+
|
42
|
+
def write_failing_mapping(step_name)
|
43
|
+
erb = ERB.new(<<-EOF, nil, '-')
|
44
|
+
Given /<%= step_name -%>/ do
|
45
|
+
# ARUBA_IGNORE_START
|
46
|
+
File.open("<%= step_file(step_name) %>", "w")
|
47
|
+
# ARUBA_IGNORE_END
|
48
|
+
raise "bang!"
|
49
|
+
end
|
50
|
+
EOF
|
51
|
+
append_to_file("features/step_definitions/some_stepdefs.rb", erb.result(binding))
|
52
|
+
end
|
53
|
+
|
54
|
+
def write_calculator_code
|
55
|
+
code = <<-EOF
|
56
|
+
# http://en.wikipedia.org/wiki/Reverse_Polish_notation
|
57
|
+
class RpnCalculator
|
58
|
+
def initialize
|
59
|
+
@stack = []
|
60
|
+
end
|
61
|
+
|
62
|
+
def push(arg)
|
63
|
+
if(%w{- + * /}.index(arg))
|
64
|
+
y, x = @stack.pop(2)
|
65
|
+
push(x.__send__(arg, y))
|
66
|
+
else
|
67
|
+
@stack.push(arg)
|
68
|
+
end
|
69
|
+
end
|
70
|
+
|
71
|
+
def PI
|
72
|
+
push(Math::PI)
|
73
|
+
end
|
74
|
+
|
75
|
+
def value
|
76
|
+
@stack[-1]
|
77
|
+
end
|
32
78
|
end
|
33
79
|
EOF
|
34
|
-
|
35
|
-
end.join("\n")
|
36
|
-
write_file("features/step_definitions/some_stepdefs.rb", mapping_code)
|
80
|
+
write_file("lib/rpn_calculator.rb", code)
|
37
81
|
end
|
38
82
|
|
39
83
|
def write_mappings_for_calculator
|
84
|
+
write_file("features/support/env.rb", "$LOAD_PATH.unshift(File.dirname(__FILE__) + '/../../lib')\n")
|
40
85
|
mapping_code = <<-EOF
|
86
|
+
require 'rpn_calculator'
|
87
|
+
|
41
88
|
Given /^a calculator$/ do
|
89
|
+
@calc = RpnCalculator.new
|
42
90
|
end
|
43
91
|
|
44
92
|
When /^the calculator computes PI$/ do
|
93
|
+
@calc.PI
|
45
94
|
end
|
46
95
|
|
47
|
-
When /^the calculator adds up ([\\d\\.]+) and ([\\d\\.]+)$/ do |
|
96
|
+
When /^the calculator adds up ([\\d\\.]+) and ([\\d\\.]+)$/ do |n1, n2|
|
97
|
+
@calc.push(n1.to_f)
|
98
|
+
@calc.push(n2.to_f)
|
99
|
+
@calc.push('+')
|
48
100
|
end
|
49
101
|
|
50
|
-
When /^the calculator adds up "([^"]*)" and "([^"]*)"$/ do |
|
102
|
+
When /^the calculator adds up "([^"]*)" and "([^"]*)"$/ do |n1, n2|
|
103
|
+
@calc.push(n1.to_i)
|
104
|
+
@calc.push(n2.to_i)
|
105
|
+
@calc.push('+')
|
51
106
|
end
|
52
107
|
|
53
|
-
When /^the calculator adds up "([^"]*)", "([^"]*)" and "([^"]*)"$/ do |
|
108
|
+
When /^the calculator adds up "([^"]*)", "([^"]*)" and "([^"]*)"$/ do |n1, n2, n3|
|
109
|
+
@calc.push(n1.to_i)
|
110
|
+
@calc.push(n2.to_i)
|
111
|
+
@calc.push(n3.to_i)
|
112
|
+
@calc.push('+')
|
113
|
+
@calc.push('+')
|
54
114
|
end
|
55
115
|
|
56
|
-
When /^the calculator adds up the following numbers:$/ do |
|
116
|
+
When /^the calculator adds up the following numbers:$/ do |numbers|
|
117
|
+
pushed = 0
|
118
|
+
numbers.split("\\n").each do |n|
|
119
|
+
@calc.push(n.to_i)
|
120
|
+
pushed +=1
|
121
|
+
@calc.push('+') if pushed > 1
|
122
|
+
end
|
57
123
|
end
|
58
124
|
|
59
125
|
Then /^the calculator returns PI$/ do
|
126
|
+
@calc.value.to_f.should be_within(0.00001).of(Math::PI)
|
60
127
|
end
|
61
128
|
|
62
|
-
Then /^the calculator returns "([^"]*)"$/ do |
|
129
|
+
Then /^the calculator returns "([^"]*)"$/ do |expected|
|
130
|
+
@calc.value.to_f.should be_within(0.00001).of(expected.to_f)
|
63
131
|
end
|
64
132
|
|
65
|
-
Then /^the calculator does not return ([\\d\\.]+)$/ do |
|
133
|
+
Then /^the calculator does not return ([\\d\\.]+)$/ do |unexpected|
|
134
|
+
@calc.value.to_f.should_not be_within(0.00001).of(unexpected.to_f)
|
66
135
|
end
|
67
136
|
|
68
137
|
EOF
|
@@ -99,8 +168,19 @@ Given /^the following feature:$/ do |feature|
|
|
99
168
|
write_feature(feature)
|
100
169
|
end
|
101
170
|
|
102
|
-
|
103
|
-
|
171
|
+
Given /^the step "([^"]*)" has a passing mapping$/ do |step_name|
|
172
|
+
write_passing_mapping(step_name)
|
173
|
+
end
|
174
|
+
|
175
|
+
Given /^the step "([^"]*)" has a pending mapping$/ do |step_name|
|
176
|
+
write_pending_mapping(step_name)
|
177
|
+
end
|
178
|
+
|
179
|
+
Given /^the step "([^"]*)" has a failing mapping$/ do |step_name|
|
180
|
+
write_failing_mapping(step_name)
|
181
|
+
end
|
182
|
+
|
183
|
+
When /^Cucumber executes the scenario "([^"]*)"$/ do |scenario_name|
|
104
184
|
run_scenario(scenario_name)
|
105
185
|
end
|
106
186
|
|
@@ -109,27 +189,28 @@ When /^Cucumber runs the feature$/ do
|
|
109
189
|
end
|
110
190
|
|
111
191
|
When /^Cucumber runs the scenario with steps for a calculator$/ do
|
192
|
+
write_calculator_code
|
112
193
|
write_mappings_for_calculator
|
113
194
|
run_scenario(@scenario_name)
|
114
195
|
end
|
115
196
|
|
116
197
|
Then /^the scenario passes$/ do
|
117
|
-
assert_partial_output("1 scenario (1 passed)",
|
198
|
+
assert_partial_output("1 scenario (1 passed)", all_output)
|
118
199
|
assert_success true
|
119
200
|
end
|
120
201
|
|
121
202
|
Then /^the scenario fails$/ do
|
122
|
-
assert_partial_output("1 scenario (1 failed)",
|
203
|
+
assert_partial_output("1 scenario (1 failed)", all_output)
|
123
204
|
assert_success false
|
124
205
|
end
|
125
206
|
|
126
207
|
Then /^the scenario is pending$/ do
|
127
|
-
assert_partial_output("1 scenario (1 pending)",
|
208
|
+
assert_partial_output("1 scenario (1 pending)", all_output)
|
128
209
|
assert_success true
|
129
210
|
end
|
130
211
|
|
131
212
|
Then /^the scenario is undefined$/ do
|
132
|
-
assert_partial_output("1 scenario (1 undefined)",
|
213
|
+
assert_partial_output("1 scenario (1 undefined)", all_output)
|
133
214
|
assert_success true
|
134
215
|
end
|
135
216
|
|
@@ -138,6 +219,6 @@ Then /^the step "([^"]*)" is skipped$/ do |pattern|
|
|
138
219
|
end
|
139
220
|
|
140
221
|
Then /^the feature passes$/ do
|
141
|
-
assert_no_partial_output("failed",
|
222
|
+
assert_no_partial_output("failed", all_output)
|
142
223
|
assert_success true
|
143
224
|
end
|
data/features/support/env.rb
CHANGED
@@ -11,10 +11,9 @@ module Aruba::Api
|
|
11
11
|
end
|
12
12
|
|
13
13
|
def unrandom(out)
|
14
|
-
out
|
15
|
-
.gsub(
|
16
|
-
.gsub(
|
17
|
-
.gsub(/Coverage report generated for Cucumber Features to #{Dir.pwd}\/coverage.*\n$/, '') # Remove SimpleCov message
|
14
|
+
out = out.gsub(/#{Dir.pwd}\/tmp\/aruba/, '.') # Remove absolute paths
|
15
|
+
out = out.gsub(/^\d+m\d+\.\d+s$/, '0m0.012s') # Make duration predictable
|
16
|
+
out = out.gsub(/Coverage report generated for Cucumber Features to #{Dir.pwd}\/coverage.*\n$/, '') # Remove SimpleCov message
|
18
17
|
end
|
19
18
|
end
|
20
19
|
|
@@ -21,8 +21,7 @@ if Cucumber::WINDOWS_MRI
|
|
21
21
|
end
|
22
22
|
end
|
23
23
|
|
24
|
-
Term::ANSIColor.coloring = false if !STDOUT.tty? && !ENV.has_key?(
|
25
|
-
Term::ANSIColor.coloring = true if ENV.has_key?("FORCE_COLOR")
|
24
|
+
Term::ANSIColor.coloring = false if !STDOUT.tty? && !ENV.has_key?('AUTOTEST')
|
26
25
|
|
27
26
|
module Cucumber
|
28
27
|
module Formatter
|
data/lib/cucumber/platform.rb
CHANGED
@@ -4,7 +4,7 @@ require 'rbconfig'
|
|
4
4
|
|
5
5
|
module Cucumber
|
6
6
|
unless defined?(Cucumber::VERSION)
|
7
|
-
VERSION = '0.
|
7
|
+
VERSION = '1.0.0'
|
8
8
|
BINARY = File.expand_path(File.dirname(__FILE__) + '/../../bin/cucumber')
|
9
9
|
LIBDIR = File.expand_path(File.dirname(__FILE__) + '/../../lib')
|
10
10
|
JRUBY = defined?(JRUBY_VERSION)
|
data/lib/cucumber/rake/task.rb
CHANGED
@@ -1,10 +1,8 @@
|
|
1
1
|
require 'cucumber/platform'
|
2
2
|
require 'gherkin/formatter/ansi_escapes'
|
3
|
-
|
4
3
|
begin
|
5
4
|
# Support Rake > 0.8.7
|
6
5
|
require 'rake/dsl_definition'
|
7
|
-
include Rake::DSL
|
8
6
|
rescue LoadError
|
9
7
|
end
|
10
8
|
|
@@ -34,8 +32,11 @@ module Cucumber
|
|
34
32
|
# See the attributes for additional configuration possibilities.
|
35
33
|
class Task
|
36
34
|
include Gherkin::Formatter::AnsiEscapes
|
35
|
+
include ::Rake::DSL if defined?(::Rake::DSL)
|
37
36
|
|
38
37
|
class InProcessCucumberRunner #:nodoc:
|
38
|
+
include ::Rake::DSL if defined?(::Rake::DSL)
|
39
|
+
|
39
40
|
attr_reader :args
|
40
41
|
|
41
42
|
def initialize(libs, cucumber_opts, feature_files)
|
@@ -55,6 +56,7 @@ module Cucumber
|
|
55
56
|
end
|
56
57
|
|
57
58
|
class ForkedCucumberRunner #:nodoc:
|
59
|
+
include ::Rake::DSL if defined?(::Rake::DSL)
|
58
60
|
|
59
61
|
def initialize(libs, cucumber_bin, cucumber_opts, bundler, feature_files)
|
60
62
|
@libs = libs
|
@@ -90,10 +92,10 @@ module Cucumber
|
|
90
92
|
|
91
93
|
def cmd
|
92
94
|
if use_bundler
|
93
|
-
[
|
95
|
+
[ Cucumber::RUBY_BINARY, '-S', 'bundle', 'exec', 'cucumber', @cucumber_opts,
|
94
96
|
@feature_files ].flatten
|
95
97
|
else
|
96
|
-
[
|
98
|
+
[ Cucumber::RUBY_BINARY, '-I', load_path(@libs), quoted_binary(@cucumber_bin),
|
97
99
|
@cucumber_opts, @feature_files ].flatten
|
98
100
|
end
|
99
101
|
end
|
@@ -112,10 +114,10 @@ module Cucumber
|
|
112
114
|
|
113
115
|
def cmd
|
114
116
|
if use_bundler
|
115
|
-
[
|
117
|
+
[Cucumber::RUBY_BINARY, '-S', 'bundle', 'exec', 'rcov', @rcov_opts,
|
116
118
|
quoted_binary(@cucumber_bin), '--', @cucumber_opts, @feature_files].flatten
|
117
119
|
else
|
118
|
-
[
|
120
|
+
[Cucumber::RUBY_BINARY, '-I', load_path(@libs), '-S', 'rcov', @rcov_opts,
|
119
121
|
quoted_binary(@cucumber_bin), '--', @cucumber_opts, @feature_files].flatten
|
120
122
|
end
|
121
123
|
end
|
@@ -1,5 +1,5 @@
|
|
1
|
-
require
|
2
|
-
require
|
1
|
+
require 'spec_helper'
|
2
|
+
require 'cucumber/formatter/spec_helper'
|
3
3
|
require 'cucumber/formatter/html'
|
4
4
|
require 'nokogiri'
|
5
5
|
require 'cucumber/rb_support/rb_language'
|
@@ -1,4 +1,4 @@
|
|
1
|
-
require
|
1
|
+
require 'spec_helper'
|
2
2
|
require 'cucumber/rake/task'
|
3
3
|
require 'rake'
|
4
4
|
|
@@ -24,7 +24,7 @@ module Cucumber
|
|
24
24
|
end
|
25
25
|
|
26
26
|
it "uses bundle exec to find cucumber and libraries" do
|
27
|
-
subject.cmd.should == [
|
27
|
+
subject.cmd.should == [Cucumber::RUBY_BINARY,
|
28
28
|
'-S',
|
29
29
|
'bundle',
|
30
30
|
'exec',
|
@@ -46,7 +46,7 @@ module Cucumber
|
|
46
46
|
end
|
47
47
|
|
48
48
|
it "uses well known cucumber location and specified libraries" do
|
49
|
-
subject.cmd.should == [
|
49
|
+
subject.cmd.should == [Cucumber::RUBY_BINARY,
|
50
50
|
"-I",
|
51
51
|
"\"lib\"",
|
52
52
|
"\"#{Cucumber::BINARY }\"",
|
@@ -1,4 +1,4 @@
|
|
1
|
-
require
|
1
|
+
require 'spec_helper'
|
2
2
|
require 'cucumber/rake/task'
|
3
3
|
require 'rake'
|
4
4
|
|
@@ -26,7 +26,7 @@ module Cucumber
|
|
26
26
|
end
|
27
27
|
|
28
28
|
it "uses bundle exec to find cucumber and libraries" do
|
29
|
-
subject.cmd.should == [
|
29
|
+
subject.cmd.should == [Cucumber::RUBY_BINARY,
|
30
30
|
'-S',
|
31
31
|
'bundle',
|
32
32
|
'exec',
|
@@ -51,7 +51,7 @@ module Cucumber
|
|
51
51
|
end
|
52
52
|
|
53
53
|
it "uses well known cucumber location and specified libraries" do
|
54
|
-
subject.cmd.should == [
|
54
|
+
subject.cmd.should == [Cucumber::RUBY_BINARY,
|
55
55
|
'-I',
|
56
56
|
'"lib"',
|
57
57
|
'-S',
|
data/spec/spec_helper.rb
CHANGED
@@ -2,10 +2,21 @@ ENV['CUCUMBER_COLORS']=nil
|
|
2
2
|
$:.unshift(File.dirname(__FILE__) + '/../lib')
|
3
3
|
$:.unshift(File.dirname(__FILE__))
|
4
4
|
|
5
|
+
# For Travis....
|
6
|
+
if defined? Encoding
|
7
|
+
Encoding.default_external = 'utf-8'
|
8
|
+
Encoding.default_internal = 'utf-8'
|
9
|
+
end
|
10
|
+
|
5
11
|
require 'rubygems'
|
6
12
|
require 'bundler'
|
7
13
|
Bundler.setup
|
8
14
|
|
9
15
|
require 'cucumber'
|
10
16
|
$KCODE='u' unless Cucumber::RUBY_1_9
|
11
|
-
|
17
|
+
|
18
|
+
RSpec.configure do |c|
|
19
|
+
c.before do
|
20
|
+
::Term::ANSIColor.coloring = true
|
21
|
+
end
|
22
|
+
end
|
metadata
CHANGED
@@ -1,8 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cucumber
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
+
hash: 23
|
4
5
|
prerelease:
|
5
|
-
|
6
|
+
segments:
|
7
|
+
- 1
|
8
|
+
- 0
|
9
|
+
- 0
|
10
|
+
version: 1.0.0
|
6
11
|
platform: ruby
|
7
12
|
authors:
|
8
13
|
- "Aslak Helles\xC3\xB8y"
|
@@ -10,7 +15,7 @@ autorequire:
|
|
10
15
|
bindir: bin
|
11
16
|
cert_chain: []
|
12
17
|
|
13
|
-
date: 2011-06-
|
18
|
+
date: 2011-06-20 00:00:00 +01:00
|
14
19
|
default_executable:
|
15
20
|
dependencies:
|
16
21
|
- !ruby/object:Gem::Dependency
|
@@ -21,7 +26,12 @@ dependencies:
|
|
21
26
|
requirements:
|
22
27
|
- - ~>
|
23
28
|
- !ruby/object:Gem::Version
|
24
|
-
|
29
|
+
hash: 29
|
30
|
+
segments:
|
31
|
+
- 2
|
32
|
+
- 4
|
33
|
+
- 1
|
34
|
+
version: 2.4.1
|
25
35
|
type: :runtime
|
26
36
|
version_requirements: *id001
|
27
37
|
- !ruby/object:Gem::Dependency
|
@@ -32,6 +42,11 @@ dependencies:
|
|
32
42
|
requirements:
|
33
43
|
- - ">="
|
34
44
|
- !ruby/object:Gem::Version
|
45
|
+
hash: 29
|
46
|
+
segments:
|
47
|
+
- 1
|
48
|
+
- 0
|
49
|
+
- 5
|
35
50
|
version: 1.0.5
|
36
51
|
type: :runtime
|
37
52
|
version_requirements: *id002
|
@@ -43,6 +58,11 @@ dependencies:
|
|
43
58
|
requirements:
|
44
59
|
- - ">="
|
45
60
|
- !ruby/object:Gem::Version
|
61
|
+
hash: 15
|
62
|
+
segments:
|
63
|
+
- 2
|
64
|
+
- 1
|
65
|
+
- 2
|
46
66
|
version: 2.1.2
|
47
67
|
type: :runtime
|
48
68
|
version_requirements: *id003
|
@@ -54,6 +74,11 @@ dependencies:
|
|
54
74
|
requirements:
|
55
75
|
- - ">="
|
56
76
|
- !ruby/object:Gem::Version
|
77
|
+
hash: 23
|
78
|
+
segments:
|
79
|
+
- 1
|
80
|
+
- 1
|
81
|
+
- 2
|
57
82
|
version: 1.1.2
|
58
83
|
type: :runtime
|
59
84
|
version_requirements: *id004
|
@@ -65,6 +90,11 @@ dependencies:
|
|
65
90
|
requirements:
|
66
91
|
- - ">="
|
67
92
|
- !ruby/object:Gem::Version
|
93
|
+
hash: 11
|
94
|
+
segments:
|
95
|
+
- 1
|
96
|
+
- 4
|
97
|
+
- 6
|
68
98
|
version: 1.4.6
|
69
99
|
type: :runtime
|
70
100
|
version_requirements: *id005
|
@@ -74,9 +104,14 @@ dependencies:
|
|
74
104
|
requirement: &id006 !ruby/object:Gem::Requirement
|
75
105
|
none: false
|
76
106
|
requirements:
|
77
|
-
- -
|
107
|
+
- - ~>
|
78
108
|
- !ruby/object:Gem::Version
|
79
|
-
|
109
|
+
hash: 11
|
110
|
+
segments:
|
111
|
+
- 0
|
112
|
+
- 4
|
113
|
+
- 2
|
114
|
+
version: 0.4.2
|
80
115
|
type: :development
|
81
116
|
version_requirements: *id006
|
82
117
|
- !ruby/object:Gem::Dependency
|
@@ -87,7 +122,12 @@ dependencies:
|
|
87
122
|
requirements:
|
88
123
|
- - ">="
|
89
124
|
- !ruby/object:Gem::Version
|
90
|
-
|
125
|
+
hash: 63
|
126
|
+
segments:
|
127
|
+
- 0
|
128
|
+
- 9
|
129
|
+
- 2
|
130
|
+
version: 0.9.2
|
91
131
|
type: :development
|
92
132
|
version_requirements: *id007
|
93
133
|
- !ruby/object:Gem::Dependency
|
@@ -98,6 +138,11 @@ dependencies:
|
|
98
138
|
requirements:
|
99
139
|
- - ">="
|
100
140
|
- !ruby/object:Gem::Version
|
141
|
+
hash: 23
|
142
|
+
segments:
|
143
|
+
- 2
|
144
|
+
- 6
|
145
|
+
- 0
|
101
146
|
version: 2.6.0
|
102
147
|
type: :development
|
103
148
|
version_requirements: *id008
|
@@ -109,6 +154,11 @@ dependencies:
|
|
109
154
|
requirements:
|
110
155
|
- - ">="
|
111
156
|
- !ruby/object:Gem::Version
|
157
|
+
hash: 15
|
158
|
+
segments:
|
159
|
+
- 1
|
160
|
+
- 4
|
161
|
+
- 4
|
112
162
|
version: 1.4.4
|
113
163
|
type: :development
|
114
164
|
version_requirements: *id009
|
@@ -120,6 +170,11 @@ dependencies:
|
|
120
170
|
requirements:
|
121
171
|
- - "="
|
122
172
|
- !ruby/object:Gem::Version
|
173
|
+
hash: 55
|
174
|
+
segments:
|
175
|
+
- 0
|
176
|
+
- 8
|
177
|
+
- 4
|
123
178
|
version: 0.8.4
|
124
179
|
type: :development
|
125
180
|
version_requirements: *id010
|
@@ -131,6 +186,11 @@ dependencies:
|
|
131
186
|
requirements:
|
132
187
|
- - "="
|
133
188
|
- !ruby/object:Gem::Version
|
189
|
+
hash: 55
|
190
|
+
segments:
|
191
|
+
- 0
|
192
|
+
- 8
|
193
|
+
- 4
|
134
194
|
version: 0.8.4
|
135
195
|
type: :development
|
136
196
|
version_requirements: *id011
|
@@ -142,6 +202,11 @@ dependencies:
|
|
142
202
|
requirements:
|
143
203
|
- - ">="
|
144
204
|
- !ruby/object:Gem::Version
|
205
|
+
hash: 23
|
206
|
+
segments:
|
207
|
+
- 1
|
208
|
+
- 0
|
209
|
+
- 0
|
145
210
|
version: 1.0.0
|
146
211
|
type: :development
|
147
212
|
version_requirements: *id012
|
@@ -153,6 +218,13 @@ dependencies:
|
|
153
218
|
requirements:
|
154
219
|
- - ">="
|
155
220
|
- !ruby/object:Gem::Version
|
221
|
+
hash: 15424139
|
222
|
+
segments:
|
223
|
+
- 0
|
224
|
+
- 9
|
225
|
+
- 0
|
226
|
+
- rc
|
227
|
+
- 7
|
156
228
|
version: 0.9.0.rc7
|
157
229
|
type: :development
|
158
230
|
version_requirements: *id013
|
@@ -164,6 +236,11 @@ dependencies:
|
|
164
236
|
requirements:
|
165
237
|
- - ">="
|
166
238
|
- !ruby/object:Gem::Version
|
239
|
+
hash: 11
|
240
|
+
segments:
|
241
|
+
- 0
|
242
|
+
- 4
|
243
|
+
- 2
|
167
244
|
version: 0.4.2
|
168
245
|
type: :development
|
169
246
|
version_requirements: *id014
|
@@ -175,6 +252,11 @@ dependencies:
|
|
175
252
|
requirements:
|
176
253
|
- - "="
|
177
254
|
- !ruby/object:Gem::Version
|
255
|
+
hash: 1
|
256
|
+
segments:
|
257
|
+
- 0
|
258
|
+
- 7
|
259
|
+
- 1
|
178
260
|
version: 0.7.1
|
179
261
|
type: :development
|
180
262
|
version_requirements: *id015
|
@@ -186,6 +268,11 @@ dependencies:
|
|
186
268
|
requirements:
|
187
269
|
- - "="
|
188
270
|
- !ruby/object:Gem::Version
|
271
|
+
hash: 31
|
272
|
+
segments:
|
273
|
+
- 1
|
274
|
+
- 6
|
275
|
+
- 8
|
189
276
|
version: 1.6.8
|
190
277
|
type: :development
|
191
278
|
version_requirements: *id016
|
@@ -197,6 +284,11 @@ dependencies:
|
|
197
284
|
requirements:
|
198
285
|
- - "="
|
199
286
|
- !ruby/object:Gem::Version
|
287
|
+
hash: 5
|
288
|
+
segments:
|
289
|
+
- 0
|
290
|
+
- 6
|
291
|
+
- 1
|
200
292
|
version: 0.6.1
|
201
293
|
type: :development
|
202
294
|
version_requirements: *id017
|
@@ -208,6 +300,9 @@ dependencies:
|
|
208
300
|
requirements:
|
209
301
|
- - ">="
|
210
302
|
- !ruby/object:Gem::Version
|
303
|
+
hash: 3
|
304
|
+
segments:
|
305
|
+
- 0
|
211
306
|
version: "0"
|
212
307
|
type: :development
|
213
308
|
version_requirements: *id018
|
@@ -219,6 +314,11 @@ dependencies:
|
|
219
314
|
requirements:
|
220
315
|
- - ">="
|
221
316
|
- !ruby/object:Gem::Version
|
317
|
+
hash: 5
|
318
|
+
segments:
|
319
|
+
- 0
|
320
|
+
- 5
|
321
|
+
- 7
|
222
322
|
version: 0.5.7
|
223
323
|
type: :development
|
224
324
|
version_requirements: *id019
|
@@ -230,6 +330,11 @@ dependencies:
|
|
230
330
|
requirements:
|
231
331
|
- - ">="
|
232
332
|
- !ruby/object:Gem::Version
|
333
|
+
hash: 5
|
334
|
+
segments:
|
335
|
+
- 0
|
336
|
+
- 7
|
337
|
+
- 3
|
233
338
|
version: 0.7.3
|
234
339
|
type: :development
|
235
340
|
version_requirements: *id020
|
@@ -241,6 +346,11 @@ dependencies:
|
|
241
346
|
requirements:
|
242
347
|
- - ">="
|
243
348
|
- !ruby/object:Gem::Version
|
349
|
+
hash: 19
|
350
|
+
segments:
|
351
|
+
- 1
|
352
|
+
- 2
|
353
|
+
- 6
|
244
354
|
version: 1.2.6
|
245
355
|
type: :development
|
246
356
|
version_requirements: *id021
|
@@ -252,6 +362,11 @@ dependencies:
|
|
252
362
|
requirements:
|
253
363
|
- - ">="
|
254
364
|
- !ruby/object:Gem::Version
|
365
|
+
hash: 23
|
366
|
+
segments:
|
367
|
+
- 1
|
368
|
+
- 0
|
369
|
+
- 0
|
255
370
|
version: 1.0.0
|
256
371
|
type: :development
|
257
372
|
version_requirements: *id022
|
@@ -832,12 +947,16 @@ has_rdoc: true
|
|
832
947
|
homepage: http://cukes.info
|
833
948
|
licenses: []
|
834
949
|
|
835
|
-
post_install_message:
|
836
|
-
|
837
|
-
|
838
|
-
|
839
|
-
|
840
|
-
|
950
|
+
post_install_message: |+
|
951
|
+
|
952
|
+
(::) (::) (::) (::) (::) (::) (::) (::) (::) (::) (::) (::) (::) (::) (::)
|
953
|
+
|
954
|
+
Thank you for installing cucumber-1.0.0.
|
955
|
+
Please be sure to read http://wiki.github.com/cucumber/cucumber/upgrading
|
956
|
+
for important information about this release. Happy cuking!
|
957
|
+
|
958
|
+
(::) (::) (::) (::) (::) (::) (::) (::) (::) (::) (::) (::) (::) (::) (::)
|
959
|
+
|
841
960
|
rdoc_options:
|
842
961
|
- --charset=UTF-8
|
843
962
|
require_paths:
|
@@ -847,12 +966,18 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
847
966
|
requirements:
|
848
967
|
- - ">="
|
849
968
|
- !ruby/object:Gem::Version
|
969
|
+
hash: 3
|
970
|
+
segments:
|
971
|
+
- 0
|
850
972
|
version: "0"
|
851
973
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
852
974
|
none: false
|
853
975
|
requirements:
|
854
976
|
- - ">="
|
855
977
|
- !ruby/object:Gem::Version
|
978
|
+
hash: 3
|
979
|
+
segments:
|
980
|
+
- 0
|
856
981
|
version: "0"
|
857
982
|
requirements: []
|
858
983
|
|
@@ -860,7 +985,7 @@ rubyforge_project:
|
|
860
985
|
rubygems_version: 1.6.2
|
861
986
|
signing_key:
|
862
987
|
specification_version: 3
|
863
|
-
summary: cucumber-0.
|
988
|
+
summary: cucumber-1.0.0
|
864
989
|
test_files:
|
865
990
|
- features/background.feature
|
866
991
|
- features/bootstrap.feature
|