Sha256: aa9bfbf4ea3b3323831aa5cc0a48e5a79631d24bfda48a3a65d66dc5cf44df22
Contents?: true
Size: 1.46 KB
Versions: 8
Compression:
Stored size: 1.46 KB
Contents
# File: basic.feature Feature: Show -visually- the several ways to use macros As a Cuke user So that I enjoy writing scenario. Scenario: Definition of a simple macro-step with two arguments Given I define the step "* I [travel from <origin> to <destination>]" to mean: """ When I leave '<origin>' And I arrive in <destination> """ Scenario: Do a simple travel # Call a macro-step defined earlier When I [travel from "Brussels" to "Rome"] # You should see the output: # I leave 'Brussels' # I arrive in Rome # Actual values can have embedded double quotes provided they are escaped. When I [travel from "Tampa" to "\"Little Italy\""] # You should see the output: # I leave 'Tampa' # I arrive in "Little Italy" # Actual values MUST be present in the phrase (but they can be empty) When I [travel from "" to "North Pole"] # You should see the output: # I leave '' # I arrive in North Pole Scenario: Defining a macro that's calling other macro-steps Given I define the step "* I [travel from <origin> to <destination> and back]" to mean: """ # The next two steps are, in fact, macro-step invokations When I [travel from "<origin>" to "<destination>"] When I [travel from "<destination>" to "<origin>"] """ Scenario: Do a travel back and forth When I [travel from "Paris" to "London" and back] # You should see the output: # I leave 'Paris' # I arrive in London # I leave 'London' # I arrive in Paris
Version data entries
8 entries across 8 versions & 1 rubygems