Sha256: f679aecda8068c36e97c683725e4938b5699c6456ae28f215670725e3f2b528f
Contents?: true
Size: 855 Bytes
Versions: 1
Compression:
Stored size: 855 Bytes
Contents
# File: demo_steps.rb # A few step definitions for demo and testing purpose. When(/^I landed in the homepage$/) do trace_steps << %Q|Invoked step: ... I landed in the homepage| end When(/^I click "([^"]*)"$/) do |element| trace_steps << %Q|Invoked step: ... I click "#{element}"| end When(/^I fill in "(.*?)" with "(.*?)"$/) do |element, text| trace_steps << %Q|Invoked step: ... I fill in "#{element}" with "#{text}"| end Then(/^I expect the following step trace:$/) do |step_text| trace_steps.should == step_text.split(/\r?\n|\n/) end When(/^I leave (.+)$/) do |city| show "I leave #{city}" end When(/^I visit (.+)$/) do |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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
macros4cuke-0.1.03 | features/step_definitions/demo_steps.rb |