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.5.15 examples/demo/features/step_definitions/step_defs.rb
macros4cuke-0.5.14 examples/demo/features/step_definitions/step_defs.rb
macros4cuke-0.5.13 examples/demo/features/step_definitions/step_defs.rb
macros4cuke-0.5.12 examples/demo/features/step_definitions/step_defs.rb
macros4cuke-0.5.11 examples/demo/features/step_definitions/step_defs.rb
macros4cuke-0.5.10 examples/demo/features/step_definitions/step_defs.rb
macros4cuke-0.5.09 examples/demo/features/step_definitions/step_defs.rb
macros4cuke-0.5.08 examples/demo/features/step_definitions/step_defs.rb
macros4cuke-0.5.07 examples/demo/features/step_definitions/step_defs.rb
macros4cuke-0.5.06 examples/demo/features/step_definitions/step_defs.rb
macros4cuke-0.5.03 examples/demo/features/step_definitions/step_defs.rb
macros4cuke-0.4.09 examples/demo/features/step_definitions/step_defs.rb
macros4cuke-0.4.08 examples/demo/features/step_definitions/step_defs.rb
macros4cuke-0.4.07 examples/demo/features/step_definitions/step_defs.rb
macros4cuke-0.4.06 examples/demo/features/step_definitions/step_defs.rb
macros4cuke-0.4.05 examples/demo/features/step_definitions/step_defs.rb
macros4cuke-0.4.04 examples/demo/features/step_definitions/step_defs.rb
macros4cuke-0.4.03 examples/demo/features/step_definitions/step_defs.rb
macros4cuke-0.4.02 examples/demo/features/step_definitions/step_defs.rb
macros4cuke-0.4.01 examples/demo/features/step_definitions/step_defs.rb