Sha256: b6219ec1800bb7a44001717f2395787cbdbf7f6f7265d81bb003a8e55697ba6d

Contents?: true

Size: 530 Bytes

Versions: 29

Compression:

Stored size: 530 Bytes

Contents

# File: demo_steps.rb
# A few step definitions for demo and testing purpose.

When(/^I leave '(.*)'$/) do |city|
  show "I leave #{city}"
end


When(/^I visit (\S+)$/) do |city|
 show "I visit #{city}"
end


# This step uses a multiline text argument
When(/^I visit the cities:$/) do |cities_raw|
 cities = cities_raw.split(/\r\n?|\n/)
 cities.each { |city| show "I visit #{city}" }
end


When(/^I arrive in (.+)$/) do |city|
  show "I arrive in #{city}"
end


When(/^I type \"([^"]*)\"$/) do |text|
  show text
end

# End of file

Version data entries

29 entries across 29 versions & 1 rubygems

Version Path
macros4cuke-0.4.00 examples/demo/features/step_definitions/step_defs.rb
macros4cuke-0.3.42 examples/demo/features/step_definitions/step_defs.rb
macros4cuke-0.3.41 examples/demo/features/step_definitions/step_defs.rb
macros4cuke-0.3.40 examples/demo/features/step_definitions/step_defs.rb
macros4cuke-0.3.39 examples/demo/features/step_definitions/step_defs.rb
macros4cuke-0.3.38 examples/demo/features/step_definitions/step_defs.rb
macros4cuke-0.3.37 examples/demo/features/step_definitions/step_defs.rb
macros4cuke-0.3.35 examples/demo/features/step_definitions/step_defs.rb
macros4cuke-0.3.34 examples/demo/features/step_definitions/step_defs.rb