macros4cuke 0.3.22 → 0.3.23

Sign up to get free protection for your applications and to get access to all the features.
data/CHANGELOG.md CHANGED
@@ -1,7 +1,9 @@
1
+ ## 0.3.23 / 2013-05-26
2
+ * [CHANGE] Demo file `table.feature`: Added one scenario combining argument passing via the phrase and table.
3
+
1
4
  ## 0.3.22 / 2013-05-25
2
5
  * [CHANGE] File `macro-collection_spec.rb`: Added one test for the `MacroCollection#render_steps` method.
3
6
 
4
-
5
7
  ## 0.3.21 / 2013-05-24
6
8
  * [CHANGE] File `.rubocop.yml`: StringLiterals cop is now enabled.
7
9
  * [CHANGE] Many file: replaced double quotes by single quotes in order to pass the StringLiterals Robocop rule.
@@ -31,6 +31,7 @@ Scenario: Using a macro-step with a data table
31
31
  # Sherlock
32
32
  # Holmes
33
33
  # 221B, Baker Street
34
+ # NW1 6XE
34
35
  # London
35
36
  # U.K.
36
37
 
@@ -52,6 +53,34 @@ Scenario: Using a macro-step with a data table
52
53
 
53
54
  # Did you notice the empty line in the previous output.
54
55
  # Guess what? We forgot to specify a value for the postcode argument.
56
+
57
+ Scenario: Show that one can combine parameters passing with the phrase and a table
58
+ Given I define the step "* I [fill in the form as <firstname> <lastname>]:" to mean:
59
+ """
60
+ When I [fill in the form with]:
61
+ |firstname| <firstname>|
62
+ |lastname | <lastname> |
63
+ |street_address| <street_address>|
64
+ |city |<city> |
65
+ |postcode|<postcode> |
66
+ |country |<country> |
67
+ """
68
+
69
+ # Let's try
70
+ When I [fill in the form as "Sherlock" "Holmes"]:
71
+ |street_address| 221B, Baker Street|
72
+ |city |London |
73
+ |postcode|NW1 6XE |
74
+ |country | U.K. |
75
+
76
+ # You should see the output:
77
+ # Sherlock
78
+ # Holmes
79
+ # 221B, Baker Street
80
+ # NW1 6XE
81
+ # London
82
+ # U.K.
83
+
55
84
 
56
85
 
57
86
  Scenario: Demonstrate that it is possible to use a sub-step with a data table
@@ -4,7 +4,7 @@
4
4
 
5
5
  module Macros4Cuke # Module used as a namespace
6
6
  # The version number of the gem.
7
- Version = '0.3.22'
7
+ Version = '0.3.23'
8
8
 
9
9
  # Brief description of the gem.
10
10
  Description = 'Macros for Cucumber'
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: macros4cuke
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.22
4
+ version: 0.3.23
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-05-25 00:00:00.000000000 Z
12
+ date: 2013-05-26 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: cucumber