Sha256: a499156ae44ca72e1fc124c6cfc71bdba2e6e2b8ff34256ea1c6061a8e6908d4

Contents?: true

Size: 548 Bytes

Versions: 8

Compression:

Stored size: 548 Bytes

Contents

# encoding: utf-8
# 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

8 entries across 8 versions & 1 rubygems

Version Path
macros4cuke-0.3.32 examples/demo/features/step_definitions/step_defs.rb
macros4cuke-0.3.30 examples/demo/features/step_definitions/step_defs.rb
macros4cuke-0.3.29 examples/demo/features/step_definitions/step_defs.rb
macros4cuke-0.3.28 examples/demo/features/step_definitions/step_defs.rb
macros4cuke-0.3.27 examples/demo/features/step_definitions/step_defs.rb
macros4cuke-0.3.26 examples/demo/features/step_definitions/step_defs.rb
macros4cuke-0.3.25 examples/demo/features/step_definitions/step_defs.rb
macros4cuke-0.3.24 examples/demo/features/step_definitions/step_defs.rb