cucumber 0.8.0 → 0.8.1
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +1 -0
- data/.rspec +1 -0
- data/History.txt +8 -0
- data/Rakefile +12 -13
- data/VERSION.yml +1 -1
- data/cucumber.gemspec +42 -42
- data/examples/i18n/hu/features/{addition.feature → osszeadas.feature} +1 -1
- data/examples/i18n/hu/features/{division.feature → osztas.feature} +2 -2
- data/examples/json/features/embed.feature +4 -0
- data/examples/json/features/step_definitions/steps.rb +5 -0
- data/features/html_formatter/a.html +2 -2
- data/features/json_formatter.feature +61 -9
- data/features/snippet.feature +1 -0
- data/gem_tasks/rspec.rake +6 -18
- data/lib/autotest/cucumber_mixin.rb +6 -2
- data/lib/cucumber/ast/outline_table.rb +1 -0
- data/lib/cucumber/ast/table.rb +5 -2
- data/lib/cucumber/feature_file.rb +7 -5
- data/lib/cucumber/formatter/json.rb +13 -1
- data/lib/cucumber/formatter/pdf.rb +9 -26
- data/lib/cucumber/parser/gherkin_builder.rb +44 -71
- data/lib/cucumber/rb_support/rb_language.rb +10 -11
- data/lib/cucumber/rb_support/rb_world.rb +1 -1
- data/lib/cucumber/step_mother.rb +7 -3
- data/spec/cucumber/ast/table_spec.rb +12 -12
- data/spec/cucumber/rb_support/rb_language_spec.rb +69 -0
- data/spec/cucumber/rb_support/rb_step_definition_spec.rb +0 -38
- metadata +42 -55
- data/examples/json/tmp/out.json +0 -1
data/.gitignore
CHANGED
data/.rspec
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
--color
|
data/History.txt
CHANGED
@@ -1,3 +1,11 @@
|
|
1
|
+
== In Git
|
2
|
+
|
3
|
+
=== Bufixes
|
4
|
+
* generate test report fails: ast/outline_table.rb fails in status() (#615 Aslak Hellesøy)
|
5
|
+
|
6
|
+
=== New Features
|
7
|
+
* Undefined steps with integers (Given 3 cukes) will generate snippets like (Given /(\d+) cukes/). (Aslak Hellesøy)
|
8
|
+
|
1
9
|
== 0.8.0 (2010-06-06)
|
2
10
|
|
3
11
|
=== Bugfixes
|
data/Rakefile
CHANGED
@@ -16,19 +16,18 @@ begin
|
|
16
16
|
gem.homepage = "http://cukes.info"
|
17
17
|
gem.authors = ["Aslak Hellesøy"]
|
18
18
|
|
19
|
-
gem.add_dependency 'gherkin', '
|
20
|
-
gem.add_dependency 'term-ansicolor', '
|
21
|
-
gem.add_dependency 'builder', '
|
22
|
-
gem.add_dependency 'diff-lcs', '
|
23
|
-
gem.add_dependency 'json_pure', '
|
24
|
-
|
25
|
-
gem.add_development_dependency 'nokogiri', '
|
26
|
-
gem.add_development_dependency 'prawn', '= 0.
|
27
|
-
gem.add_development_dependency 'prawn-
|
28
|
-
gem.add_development_dependency '
|
29
|
-
gem.add_development_dependency '
|
30
|
-
gem.add_development_dependency '
|
31
|
-
gem.add_development_dependency 'spork', '>= 0.8.3' unless Cucumber::JRUBY || Cucumber::WINDOWS
|
19
|
+
gem.add_dependency 'gherkin', '~> 2.0.0'
|
20
|
+
gem.add_dependency 'term-ansicolor', '~> 1.0.4'
|
21
|
+
gem.add_dependency 'builder', '~> 2.1.2'
|
22
|
+
gem.add_dependency 'diff-lcs', '~> 1.1.2'
|
23
|
+
gem.add_dependency 'json_pure', '~> 1.4.3'
|
24
|
+
|
25
|
+
gem.add_development_dependency 'nokogiri', '~> 1.4.2'
|
26
|
+
gem.add_development_dependency 'prawn', '= 0.8.4'
|
27
|
+
gem.add_development_dependency 'prawn-layout', '= 0.8.4'
|
28
|
+
gem.add_development_dependency 'rspec', '~> 2.0.0.beta.11'
|
29
|
+
gem.add_development_dependency 'syntax', '~> 1.0.0'
|
30
|
+
gem.add_development_dependency 'spork', '~> 0.8.3' unless Cucumber::JRUBY || Cucumber::WINDOWS
|
32
31
|
|
33
32
|
extend Cucumber::Formatter::ANSIColor
|
34
33
|
gem.post_install_message = <<-POST_INSTALL_MESSAGE
|
data/VERSION.yml
CHANGED
data/cucumber.gemspec
CHANGED
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{cucumber}
|
8
|
-
s.version = "0.8.
|
8
|
+
s.version = "0.8.1"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Aslak Helles\303\270y"]
|
12
|
-
s.date = %q{2010-06-
|
12
|
+
s.date = %q{2010-06-15}
|
13
13
|
s.default_executable = %q{cucumber}
|
14
14
|
s.description = %q{Behaviour Driven Development with elegance and joy}
|
15
15
|
s.email = %q{cukes@googlegroups.com}
|
@@ -21,6 +21,7 @@ Gem::Specification.new do |s|
|
|
21
21
|
s.files = [
|
22
22
|
".gitattributes",
|
23
23
|
".gitignore",
|
24
|
+
".rspec",
|
24
25
|
"Caliper.yml",
|
25
26
|
"History.txt",
|
26
27
|
"LICENSE",
|
@@ -106,8 +107,8 @@ Gem::Specification.new do |s|
|
|
106
107
|
"examples/i18n/he/lib/calculator.rb",
|
107
108
|
"examples/i18n/hu/.gitignore",
|
108
109
|
"examples/i18n/hu/Rakefile",
|
109
|
-
"examples/i18n/hu/features/
|
110
|
-
"examples/i18n/hu/features/
|
110
|
+
"examples/i18n/hu/features/osszeadas.feature",
|
111
|
+
"examples/i18n/hu/features/osztas.feature",
|
111
112
|
"examples/i18n/hu/features/step_definitons/calculator_steps.rb",
|
112
113
|
"examples/i18n/hu/lib/calculator.rb",
|
113
114
|
"examples/i18n/id/.gitignore",
|
@@ -225,11 +226,11 @@ Gem::Specification.new do |s|
|
|
225
226
|
"examples/i18n/zh-TW/features/step_definitons/calculator_steps.rb",
|
226
227
|
"examples/i18n/zh-TW/lib/calculator.rb",
|
227
228
|
"examples/json/features/background.feature",
|
229
|
+
"examples/json/features/embed.feature",
|
228
230
|
"examples/json/features/one_passing_one_failing.feature",
|
229
231
|
"examples/json/features/pystring.feature",
|
230
232
|
"examples/json/features/step_definitions/steps.rb",
|
231
233
|
"examples/json/features/tables.feature",
|
232
|
-
"examples/json/tmp/out.json",
|
233
234
|
"examples/junit/features/one_passing_one_failing.feature",
|
234
235
|
"examples/junit/features/pending.feature",
|
235
236
|
"examples/junit/features/step_definitions/steps.rb",
|
@@ -532,6 +533,7 @@ Gem::Specification.new do |s|
|
|
532
533
|
"spec/cucumber/formatter/junit_spec.rb",
|
533
534
|
"spec/cucumber/formatter/progress_spec.rb",
|
534
535
|
"spec/cucumber/formatter/spec_helper.rb",
|
536
|
+
"spec/cucumber/rb_support/rb_language_spec.rb",
|
535
537
|
"spec/cucumber/rb_support/rb_step_definition_spec.rb",
|
536
538
|
"spec/cucumber/rb_support/regexp_argument_matcher_spec.rb",
|
537
539
|
"spec/cucumber/sell_cucumbers.feature",
|
@@ -552,7 +554,7 @@ Gem::Specification.new do |s|
|
|
552
554
|
|
553
555
|
(::) U P G R A D I N G (::)
|
554
556
|
|
555
|
-
Thank you for installing cucumber-0.8.
|
557
|
+
Thank you for installing cucumber-0.8.1.
|
556
558
|
Please be sure to read http://wiki.github.com/aslakhellesoy/cucumber/upgrading
|
557
559
|
for important information about this release. Happy cuking!
|
558
560
|
|
@@ -588,6 +590,7 @@ for important information about this release. Happy cuking!
|
|
588
590
|
"spec/cucumber/formatter/junit_spec.rb",
|
589
591
|
"spec/cucumber/formatter/progress_spec.rb",
|
590
592
|
"spec/cucumber/formatter/spec_helper.rb",
|
593
|
+
"spec/cucumber/rb_support/rb_language_spec.rb",
|
591
594
|
"spec/cucumber/rb_support/rb_step_definition_spec.rb",
|
592
595
|
"spec/cucumber/rb_support/regexp_argument_matcher_spec.rb",
|
593
596
|
"spec/cucumber/step_match_spec.rb",
|
@@ -727,45 +730,42 @@ for important information about this release. Happy cuking!
|
|
727
730
|
s.specification_version = 3
|
728
731
|
|
729
732
|
if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
|
730
|
-
s.add_runtime_dependency(%q<gherkin>, ["
|
731
|
-
s.add_runtime_dependency(%q<term-ansicolor>, ["
|
732
|
-
s.add_runtime_dependency(%q<builder>, ["
|
733
|
-
s.add_runtime_dependency(%q<diff-lcs>, ["
|
734
|
-
s.add_runtime_dependency(%q<json_pure>, ["
|
735
|
-
s.add_development_dependency(%q<nokogiri>, ["
|
736
|
-
s.add_development_dependency(%q<prawn>, ["= 0.
|
737
|
-
s.add_development_dependency(%q<prawn-
|
738
|
-
s.add_development_dependency(%q<
|
739
|
-
s.add_development_dependency(%q<
|
740
|
-
s.add_development_dependency(%q<
|
741
|
-
s.add_development_dependency(%q<spork>, [">= 0.8.3"])
|
733
|
+
s.add_runtime_dependency(%q<gherkin>, ["~> 2.0.0"])
|
734
|
+
s.add_runtime_dependency(%q<term-ansicolor>, ["~> 1.0.4"])
|
735
|
+
s.add_runtime_dependency(%q<builder>, ["~> 2.1.2"])
|
736
|
+
s.add_runtime_dependency(%q<diff-lcs>, ["~> 1.1.2"])
|
737
|
+
s.add_runtime_dependency(%q<json_pure>, ["~> 1.4.3"])
|
738
|
+
s.add_development_dependency(%q<nokogiri>, ["~> 1.4.2"])
|
739
|
+
s.add_development_dependency(%q<prawn>, ["= 0.8.4"])
|
740
|
+
s.add_development_dependency(%q<prawn-layout>, ["= 0.8.4"])
|
741
|
+
s.add_development_dependency(%q<rspec>, ["~> 2.0.0.beta.11"])
|
742
|
+
s.add_development_dependency(%q<syntax>, ["~> 1.0.0"])
|
743
|
+
s.add_development_dependency(%q<spork>, ["~> 0.8.3"])
|
742
744
|
else
|
743
|
-
s.add_dependency(%q<gherkin>, ["
|
744
|
-
s.add_dependency(%q<term-ansicolor>, ["
|
745
|
-
s.add_dependency(%q<builder>, ["
|
746
|
-
s.add_dependency(%q<diff-lcs>, ["
|
747
|
-
s.add_dependency(%q<json_pure>, ["
|
748
|
-
s.add_dependency(%q<nokogiri>, ["
|
749
|
-
s.add_dependency(%q<prawn>, ["= 0.
|
750
|
-
s.add_dependency(%q<prawn-
|
751
|
-
s.add_dependency(%q<
|
752
|
-
s.add_dependency(%q<
|
753
|
-
s.add_dependency(%q<
|
754
|
-
s.add_dependency(%q<spork>, [">= 0.8.3"])
|
745
|
+
s.add_dependency(%q<gherkin>, ["~> 2.0.0"])
|
746
|
+
s.add_dependency(%q<term-ansicolor>, ["~> 1.0.4"])
|
747
|
+
s.add_dependency(%q<builder>, ["~> 2.1.2"])
|
748
|
+
s.add_dependency(%q<diff-lcs>, ["~> 1.1.2"])
|
749
|
+
s.add_dependency(%q<json_pure>, ["~> 1.4.3"])
|
750
|
+
s.add_dependency(%q<nokogiri>, ["~> 1.4.2"])
|
751
|
+
s.add_dependency(%q<prawn>, ["= 0.8.4"])
|
752
|
+
s.add_dependency(%q<prawn-layout>, ["= 0.8.4"])
|
753
|
+
s.add_dependency(%q<rspec>, ["~> 2.0.0.beta.11"])
|
754
|
+
s.add_dependency(%q<syntax>, ["~> 1.0.0"])
|
755
|
+
s.add_dependency(%q<spork>, ["~> 0.8.3"])
|
755
756
|
end
|
756
757
|
else
|
757
|
-
s.add_dependency(%q<gherkin>, ["
|
758
|
-
s.add_dependency(%q<term-ansicolor>, ["
|
759
|
-
s.add_dependency(%q<builder>, ["
|
760
|
-
s.add_dependency(%q<diff-lcs>, ["
|
761
|
-
s.add_dependency(%q<json_pure>, ["
|
762
|
-
s.add_dependency(%q<nokogiri>, ["
|
763
|
-
s.add_dependency(%q<prawn>, ["= 0.
|
764
|
-
s.add_dependency(%q<prawn-
|
765
|
-
s.add_dependency(%q<
|
766
|
-
s.add_dependency(%q<
|
767
|
-
s.add_dependency(%q<
|
768
|
-
s.add_dependency(%q<spork>, [">= 0.8.3"])
|
758
|
+
s.add_dependency(%q<gherkin>, ["~> 2.0.0"])
|
759
|
+
s.add_dependency(%q<term-ansicolor>, ["~> 1.0.4"])
|
760
|
+
s.add_dependency(%q<builder>, ["~> 2.1.2"])
|
761
|
+
s.add_dependency(%q<diff-lcs>, ["~> 1.1.2"])
|
762
|
+
s.add_dependency(%q<json_pure>, ["~> 1.4.3"])
|
763
|
+
s.add_dependency(%q<nokogiri>, ["~> 1.4.2"])
|
764
|
+
s.add_dependency(%q<prawn>, ["= 0.8.4"])
|
765
|
+
s.add_dependency(%q<prawn-layout>, ["= 0.8.4"])
|
766
|
+
s.add_dependency(%q<rspec>, ["~> 2.0.0.beta.11"])
|
767
|
+
s.add_dependency(%q<syntax>, ["~> 1.0.0"])
|
768
|
+
s.add_dependency(%q<spork>, ["~> 0.8.3"])
|
769
769
|
end
|
770
770
|
end
|
771
771
|
|
@@ -5,7 +5,7 @@ Jellemző: Összeadás
|
|
5
5
|
két szám összegét szeretném kiszámoltatni.
|
6
6
|
|
7
7
|
Forgatókönyv vázlat: Két szám összeadása
|
8
|
-
|
8
|
+
Amennyiben beütök a számológépbe egy <be_1>-est
|
9
9
|
És beütök a számológépbe egy <be_2>-est
|
10
10
|
Majd megnyomom az <gomb> gombot
|
11
11
|
Akkor eredményül <ki>-t kell kapnom
|
@@ -4,7 +4,7 @@ Jellemző: Osztás
|
|
4
4
|
a számológépeknek tudniuk kell osztani.
|
5
5
|
|
6
6
|
Forgatókönyv: Egyszerű számok
|
7
|
-
|
7
|
+
Amennyiben beütök a számológépbe egy 3-ast
|
8
8
|
És beütök a számológépbe egy 2-est
|
9
|
-
|
9
|
+
Ha megnyomom a divide gombot
|
10
10
|
Akkor eredményül 1.5-öt kell kapnom
|
@@ -343,9 +343,9 @@ features/failing_expectation.feature:4:in `Given failing expectation':in `Given
|
|
343
343
|
<span class="offending"><span class="linenum">63</span> <span class="punct">'</span><span class="string">this</span><span class="punct">'.</span><span class="ident">should</span> <span class="punct">==</span> <span class="punct">'</span><span class="string">that</span><span class="punct">'</span></span>
|
344
344
|
<span class="linenum">64</span><span class="keyword">end</span></code></pre></li> <script type="text/javascript">moveProgressBar('39.0');</script></ol></div></div><div class="feature"><h2><span class="val">Feature: Lots of undefined</span></h2><p class="narrative"></p><div class='scenario'><h3 id="scenario_20"><span class="keyword">Scenario</span> <span class="val">Implement me</span></h3><ol><script>makeYellow('scenario_20');</script><li id='features_lots_of_undefined_feature_4' class='step undefined'><div class="step_name"><span class="keyword">Given </span><span class="step val">it snows in Sahara</span></div><div class="step_file"><span>features/lots_of_undefined.feature:4</span></div><pre>Given /^it snows in Sahara$/ do
|
345
345
|
pending # express the regexp above with the code you wish you had
|
346
|
-
end</pre></li> <script type="text/javascript">moveProgressBar('39.6');</script><script>makeYellow('scenario_20');</script><li id='features_lots_of_undefined_feature_5' class='step undefined'><div class="step_name"><span class="keyword">Given </span><span class="step val">it's 40 degrees in Norway</span></div><div class="step_file"><span>features/lots_of_undefined.feature:5</span></div><pre>Given /^it's
|
346
|
+
end</pre></li> <script type="text/javascript">moveProgressBar('39.6');</script><script>makeYellow('scenario_20');</script><li id='features_lots_of_undefined_feature_5' class='step undefined'><div class="step_name"><span class="keyword">Given </span><span class="step val">it's 40 degrees in Norway</span></div><div class="step_file"><span>features/lots_of_undefined.feature:5</span></div><pre>Given /^it's (\d+) degrees in Norway$/ do |arg1|
|
347
347
|
pending # express the regexp above with the code you wish you had
|
348
|
-
end</pre></li> <script type="text/javascript">moveProgressBar('40.2');</script><script>makeYellow('scenario_20');</script><li id='features_lots_of_undefined_feature_6' class='step undefined'><div class="step_name"><span class="keyword">And </span><span class="step val">it's 40 degrees in Norway</span></div><div class="step_file"><span>features/lots_of_undefined.feature:6</span></div><pre>Given /^it's
|
348
|
+
end</pre></li> <script type="text/javascript">moveProgressBar('40.2');</script><script>makeYellow('scenario_20');</script><li id='features_lots_of_undefined_feature_6' class='step undefined'><div class="step_name"><span class="keyword">And </span><span class="step val">it's 40 degrees in Norway</span></div><div class="step_file"><span>features/lots_of_undefined.feature:6</span></div><pre>Given /^it's (\d+) degrees in Norway$/ do |arg1|
|
349
349
|
pending # express the regexp above with the code you wish you had
|
350
350
|
end</pre></li> <script type="text/javascript">moveProgressBar('40.8');</script><script>makeYellow('scenario_20');</script><li id='features_lots_of_undefined_feature_7' class='step undefined'><div class="step_name"><span class="keyword">When </span><span class="step val">I stop procrastinating</span></div><div class="step_file"><span>features/lots_of_undefined.feature:7</span></div><pre>When /^I stop procrastinating$/ do
|
351
351
|
pending # express the regexp above with the code you wish you had
|
@@ -39,7 +39,8 @@ Feature: JSON output formatter
|
|
39
39
|
"steps": [
|
40
40
|
{
|
41
41
|
"status": "passed",
|
42
|
-
"
|
42
|
+
"keyword": "Given ",
|
43
|
+
"name": "a passing step",
|
43
44
|
"file_colon_line": "features/step_definitions/steps.rb:1"
|
44
45
|
}
|
45
46
|
]
|
@@ -62,7 +63,8 @@ Feature: JSON output formatter
|
|
62
63
|
]
|
63
64
|
},
|
64
65
|
"status": "failed",
|
65
|
-
"
|
66
|
+
"keyword": "Given ",
|
67
|
+
"name": "a failing step",
|
66
68
|
"file_colon_line": "features/step_definitions/steps.rb:5"
|
67
69
|
}
|
68
70
|
]
|
@@ -97,12 +99,14 @@ Feature: JSON output formatter
|
|
97
99
|
"steps": [
|
98
100
|
{
|
99
101
|
"status": "skipped",
|
100
|
-
"
|
102
|
+
"keyword": "Given ",
|
103
|
+
"name": "I add <a> and <b>",
|
101
104
|
"file_colon_line": "features/step_definitions/steps.rb:13"
|
102
105
|
},
|
103
106
|
{
|
104
107
|
"status": "skipped",
|
105
|
-
"
|
108
|
+
"keyword": "When ",
|
109
|
+
"name": "I pass a table argument",
|
106
110
|
"file_colon_line": "features/step_definitions/steps.rb:25",
|
107
111
|
"table": [
|
108
112
|
{"cells":
|
@@ -115,7 +119,8 @@ Feature: JSON output formatter
|
|
115
119
|
},
|
116
120
|
{
|
117
121
|
"status": "skipped",
|
118
|
-
"
|
122
|
+
"keyword": "Then ",
|
123
|
+
"name": "I the result should be <c>",
|
119
124
|
"file_colon_line": "features/step_definitions/steps.rb:17"
|
120
125
|
}
|
121
126
|
],
|
@@ -211,7 +216,8 @@ Feature: JSON output formatter
|
|
211
216
|
"steps": [
|
212
217
|
{
|
213
218
|
"status": "passed",
|
214
|
-
"
|
219
|
+
"keyword": "Then ",
|
220
|
+
"name": "I should see",
|
215
221
|
"file_colon_line": "features/step_definitions/steps.rb:21",
|
216
222
|
"py_string": "a string"
|
217
223
|
}
|
@@ -240,7 +246,8 @@ Feature: JSON output formatter
|
|
240
246
|
"steps": [
|
241
247
|
{
|
242
248
|
"status": "passed",
|
243
|
-
"
|
249
|
+
"keyword": "Given ",
|
250
|
+
"name": "a passing step",
|
244
251
|
"file_colon_line": "features/step_definitions/steps.rb:1"
|
245
252
|
}
|
246
253
|
]
|
@@ -256,7 +263,8 @@ Feature: JSON output formatter
|
|
256
263
|
"steps": [
|
257
264
|
{
|
258
265
|
"status": "passed",
|
259
|
-
"
|
266
|
+
"keyword": "Given ",
|
267
|
+
"name": "a passing step",
|
260
268
|
"file_colon_line": "features/step_definitions/steps.rb:1"
|
261
269
|
},
|
262
270
|
{
|
@@ -269,7 +277,8 @@ Feature: JSON output formatter
|
|
269
277
|
]
|
270
278
|
},
|
271
279
|
"status": "failed",
|
272
|
-
"
|
280
|
+
"keyword": "Given ",
|
281
|
+
"name": "a failing step",
|
273
282
|
"file_colon_line": "features/step_definitions/steps.rb:5"
|
274
283
|
}
|
275
284
|
]
|
@@ -279,3 +288,46 @@ Feature: JSON output formatter
|
|
279
288
|
]
|
280
289
|
}
|
281
290
|
"""
|
291
|
+
|
292
|
+
Scenario: embedding screenshot
|
293
|
+
When I run cucumber --format json_pretty features/embed.feature
|
294
|
+
Then STDERR should be empty
|
295
|
+
And it should pass with JSON
|
296
|
+
"""
|
297
|
+
{
|
298
|
+
"features": [
|
299
|
+
{
|
300
|
+
"file": "features/embed.feature",
|
301
|
+
"name": "A screenshot feature",
|
302
|
+
"tags": [
|
303
|
+
|
304
|
+
],
|
305
|
+
"elements": [
|
306
|
+
{
|
307
|
+
"tags": [
|
308
|
+
|
309
|
+
],
|
310
|
+
"keyword": "Scenario",
|
311
|
+
"name": "",
|
312
|
+
"file_colon_line": "features/embed.feature:3",
|
313
|
+
"steps": [
|
314
|
+
{
|
315
|
+
"status": "passed",
|
316
|
+
"keyword": "Given ",
|
317
|
+
"name": "I embed a screenshot",
|
318
|
+
"file_colon_line": "features/step_definitions/steps.rb:29",
|
319
|
+
"embedded": [
|
320
|
+
{
|
321
|
+
"file": "tmp/screenshot.png",
|
322
|
+
"mime_type": "image/png",
|
323
|
+
"data": "Zm9v\n"
|
324
|
+
}
|
325
|
+
]
|
326
|
+
}
|
327
|
+
]
|
328
|
+
}
|
329
|
+
]
|
330
|
+
}
|
331
|
+
]
|
332
|
+
}
|
333
|
+
"""
|
data/features/snippet.feature
CHANGED
@@ -11,6 +11,7 @@ Feature: Snippets
|
|
11
11
|
pending # express the regexp above with the code you wish you had
|
12
12
|
end
|
13
13
|
"""
|
14
|
+
|
14
15
|
Scenario: Snippet for undefined step with a step table
|
15
16
|
When I run cucumber features/undefined_multiline_args.feature:9 -s
|
16
17
|
Then the output should contain
|
data/gem_tasks/rspec.rake
CHANGED
@@ -1,20 +1,8 @@
|
|
1
|
-
|
2
|
-
require 'rspec/core/rake_task'
|
1
|
+
require 'rspec/core/rake_task'
|
3
2
|
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
end
|
10
|
-
rescue LoadError => e
|
11
|
-
require 'spec/rake/spectask'
|
12
|
-
|
13
|
-
desc "Run RSpec"
|
14
|
-
Spec::Rake::SpecTask.new do |t|
|
15
|
-
t.spec_opts = %w{--color --diff}
|
16
|
-
t.rcov = ENV['RCOV']
|
17
|
-
t.rcov_opts = %w{--exclude osx\/objc,gems\/,spec\/}
|
18
|
-
t.verbose = true
|
19
|
-
end
|
3
|
+
desc "Run RSpec"
|
4
|
+
RSpec::Core::RakeTask.new do |t|
|
5
|
+
t.rcov = ENV['RCOV']
|
6
|
+
t.rcov_opts = %w{--exclude osx\/objc,gems\/,spec\/}
|
7
|
+
t.verbose = true
|
20
8
|
end
|
@@ -79,8 +79,12 @@ module Autotest::CucumberMixin
|
|
79
79
|
begin
|
80
80
|
open("| #{cmd}", "r") do |f|
|
81
81
|
until f.eof? do
|
82
|
-
c = f.getc
|
83
|
-
|
82
|
+
c = f.getc or break
|
83
|
+
if RUBY_VERSION >= "1.9" then
|
84
|
+
print c
|
85
|
+
else
|
86
|
+
putc c
|
87
|
+
end
|
84
88
|
line << c
|
85
89
|
if c == ?\n then
|
86
90
|
self.results << if RUBY_VERSION >= "1.9" then
|