cucumber 0.7.0.beta.5 → 0.7.0.beta.6

Sign up to get free protection for your applications and to get access to all the features.
data/History.txt CHANGED
@@ -1,3 +1,8 @@
1
+ == 0.7.0.beta.6 (2010-04-28)
2
+
3
+ === Bugfixes
4
+ * Fixed a small regression with pystrings and calling steps from stepdefs, introduced in a previous beta. (Aslak Hellesøy)
5
+
1
6
  == 0.7.0.beta.5 (2010-04-27)
2
7
 
3
8
  === New Features
data/VERSION.yml CHANGED
@@ -1,5 +1,5 @@
1
1
  ---
2
2
  :patch: 0
3
- :build: beta.5
3
+ :build: beta.6
4
4
  :major: 0
5
5
  :minor: 7
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.5"
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-27}
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/call_many_steps.feature",
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.5.
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:19
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(text_or_table, file, line_offset)
37
+ @__cucumber_step_mother.py_string(string_with_triple_quotes, file, line_offset)
38
38
  end
39
39
 
40
40
  # See StepMother#announce
@@ -20,6 +20,7 @@ module Cucumber
20
20
  end
21
21
 
22
22
  def invoke(multiline_arg)
23
+ multiline_arg = Ast::PyString.new(multiline_arg) if String === multiline_arg
23
24
  all_args = args
24
25
  all_args << multiline_arg.to_step_definition_arg if multiline_arg
25
26
  @step_definition.invoke(all_args)
metadata CHANGED
@@ -7,8 +7,8 @@ version: !ruby/object:Gem::Version
7
7
  - 7
8
8
  - 0
9
9
  - beta
10
- - 5
11
- version: 0.7.0.beta.5
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-27 00:00:00 -05:00
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/call_many_steps.feature
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.5.
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