examples/demo/features/table.feature in macros4cuke-0.3.22 vs examples/demo/features/table.feature in macros4cuke-0.3.23

- old
+ new

@@ -29,10 +29,11 @@ # You should see the output: # Sherlock # Holmes # 221B, Baker Street + # NW1 6XE # London # U.K. When I [fill in the form with]: @@ -50,9 +51,37 @@ # Princeton # U.S.A # Did you notice the empty line in the previous output. # Guess what? We forgot to specify a value for the postcode argument. + +Scenario: Show that one can combine parameters passing with the phrase and a table + Given I define the step "* I [fill in the form as <firstname> <lastname>]:" to mean: + """ + When I [fill in the form with]: + |firstname| <firstname>| + |lastname | <lastname> | + |street_address| <street_address>| + |city |<city> | + |postcode|<postcode> | + |country |<country> | + """ + + # Let's try + When I [fill in the form as "Sherlock" "Holmes"]: + |street_address| 221B, Baker Street| + |city |London | + |postcode|NW1 6XE | + |country | U.K. | + + # You should see the output: + # Sherlock + # Holmes + # 221B, Baker Street + # NW1 6XE + # London + # U.K. + Scenario: Demonstrate that it is possible to use a sub-step with a data table Given I define the step "* I [fill in, as a Londonian, the form with]:" to mean: """