cucumber 0.7.0.beta.5 → 0.7.0.beta.6
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/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.7.0.beta.
|
8
|
+
s.version = "0.7.0.beta.6"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new("> 1.3.1") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Aslak Hellesøy"]
|
12
|
-
s.date = %q{2010-04-
|
12
|
+
s.date = %q{2010-04-28}
|
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}
|
@@ -347,7 +347,7 @@ Gem::Specification.new do |s|
|
|
347
347
|
"features/bug_464.feature",
|
348
348
|
"features/bug_475.feature",
|
349
349
|
"features/bug_585_tab_indentation.feature",
|
350
|
-
"features/
|
350
|
+
"features/call_steps_from_stepdefs.feature",
|
351
351
|
"features/cucumber_cli.feature",
|
352
352
|
"features/cucumber_cli_diff_disabled.feature",
|
353
353
|
"features/cucumber_cli_outlines.feature",
|
@@ -540,7 +540,7 @@ Gem::Specification.new do |s|
|
|
540
540
|
|
541
541
|
(::) U P G R A D I N G (::)
|
542
542
|
|
543
|
-
Thank you for installing cucumber-0.7.0.beta.
|
543
|
+
Thank you for installing cucumber-0.7.0.beta.6.
|
544
544
|
Please be sure to read http://wiki.github.com/aslakhellesoy/cucumber/upgrading
|
545
545
|
for important information about this release. Happy cuking!
|
546
546
|
|
@@ -21,6 +21,9 @@ Feature: http://gist.github.com/221223
|
|
21
21
|
|
22
22
|
Scenario: Call a table
|
23
23
|
Given I call a table with MAMA
|
24
|
+
|
25
|
+
Scenario: Call a multiline string using keyword
|
26
|
+
Given I use keyword to call a multiline string with BANG
|
24
27
|
"""
|
25
28
|
And a file named "features/step_definitions/steps.rb" with:
|
26
29
|
"""
|
@@ -42,6 +45,10 @@ Feature: http://gist.github.com/221223
|
|
42
45
|
}
|
43
46
|
end
|
44
47
|
|
48
|
+
Given /^I use keyword to call a multiline string with (.*)$/ do |s| x=1
|
49
|
+
Given 'a multiline string:', "Hello\n#{s}"
|
50
|
+
end
|
51
|
+
|
45
52
|
Given /^I call a table with (.*)$/ do |s| x=1
|
46
53
|
steps %Q{
|
47
54
|
Given a table:
|
@@ -109,7 +116,7 @@ Feature: http://gist.github.com/221223
|
|
109
116
|
Feature: Test
|
110
117
|
|
111
118
|
Scenario: Call a table # features/f.feature:13
|
112
|
-
Given I call a table with MAMA # features/step_definitions/steps.rb:
|
119
|
+
Given I call a table with MAMA # features/step_definitions/steps.rb:23
|
113
120
|
I got table:
|
114
121
|
[["a", "b"], ["c", "MAMA"]] (RuntimeError)
|
115
122
|
./features/step_definitions/steps.rb:6:in `/^a table:$/'
|
@@ -122,3 +129,26 @@ Feature: http://gist.github.com/221223
|
|
122
129
|
1 step (1 failed)
|
123
130
|
|
124
131
|
"""
|
132
|
+
|
133
|
+
Scenario: Call multiline string with keyword
|
134
|
+
When I run cucumber features/f.feature:16
|
135
|
+
Then STDERR should be empty
|
136
|
+
And it should fail with
|
137
|
+
"""
|
138
|
+
Feature: Test
|
139
|
+
|
140
|
+
Scenario: Call a multiline string using keyword # features/f.feature:16
|
141
|
+
Given I use keyword to call a multiline string with BANG # features/step_definitions/steps.rb:19
|
142
|
+
I got multiline:
|
143
|
+
Hello
|
144
|
+
BANG (RuntimeError)
|
145
|
+
./features/step_definitions/steps.rb:2:in `/^a multiline string:$/'
|
146
|
+
features/f.feature:17:in `Given I use keyword to call a multiline string with BANG'
|
147
|
+
|
148
|
+
Failing Scenarios:
|
149
|
+
cucumber features/f.feature:16 # Scenario: Call a multiline string using keyword
|
150
|
+
|
151
|
+
1 scenario (1 failed)
|
152
|
+
1 step (1 failed)
|
153
|
+
|
154
|
+
"""
|
@@ -34,7 +34,7 @@ module Cucumber
|
|
34
34
|
|
35
35
|
# See StepMother#py_string
|
36
36
|
def py_string(string_with_triple_quotes, file=nil, line_offset=0)
|
37
|
-
@__cucumber_step_mother.py_string(
|
37
|
+
@__cucumber_step_mother.py_string(string_with_triple_quotes, file, line_offset)
|
38
38
|
end
|
39
39
|
|
40
40
|
# See StepMother#announce
|
data/lib/cucumber/step_match.rb
CHANGED
metadata
CHANGED
@@ -7,8 +7,8 @@ version: !ruby/object:Gem::Version
|
|
7
7
|
- 7
|
8
8
|
- 0
|
9
9
|
- beta
|
10
|
-
-
|
11
|
-
version: 0.7.0.beta.
|
10
|
+
- 6
|
11
|
+
version: 0.7.0.beta.6
|
12
12
|
platform: ruby
|
13
13
|
authors:
|
14
14
|
- "Aslak Helles\xC3\xB8y"
|
@@ -16,7 +16,7 @@ autorequire:
|
|
16
16
|
bindir: bin
|
17
17
|
cert_chain: []
|
18
18
|
|
19
|
-
date: 2010-04-
|
19
|
+
date: 2010-04-28 00:00:00 -05:00
|
20
20
|
default_executable: cucumber
|
21
21
|
dependencies:
|
22
22
|
- !ruby/object:Gem::Dependency
|
@@ -525,7 +525,7 @@ files:
|
|
525
525
|
- features/bug_464.feature
|
526
526
|
- features/bug_475.feature
|
527
527
|
- features/bug_585_tab_indentation.feature
|
528
|
-
- features/
|
528
|
+
- features/call_steps_from_stepdefs.feature
|
529
529
|
- features/cucumber_cli.feature
|
530
530
|
- features/cucumber_cli_diff_disabled.feature
|
531
531
|
- features/cucumber_cli_outlines.feature
|
@@ -721,7 +721,7 @@ post_install_message: |+
|
|
721
721
|
|
722
722
|
(::) U P G R A D I N G (::)
|
723
723
|
|
724
|
-
Thank you for installing cucumber-0.7.0.beta.
|
724
|
+
Thank you for installing cucumber-0.7.0.beta.6.
|
725
725
|
Please be sure to read http://wiki.github.com/aslakhellesoy/cucumber/upgrading
|
726
726
|
for important information about this release. Happy cuking!
|
727
727
|
|