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