Sha256: 329fc35c3df5996fb92c9f8e50ed12a1e8e45d2ef77341c158800bcb5f1db8b3

Contents?: true

Size: 893 Bytes

Versions: 4

Compression:

Stored size: 893 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|
  trace_steps << %Q|Invoked step: ... I leave #{city}|
end


When(/^I visit (.+)$/) do |city|
  trace_steps << %Q|Invoked step: ... I visit #{city}|
end


When(/^I arrive in (.+)$/) do |city|
  trace_steps << %Q|Invoked step: ... I arrive in #{city}|
end


# End of file

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
macros4cuke-0.1.02 features/step_definitions/demo_steps.rb
macros4cuke-0.1.00 features/step_definitions/demo_steps.rb
macros4cuke-0.0.02 features/step_definitions/demo_steps.rb
macros4cuke-0.0.01 features/step_definitions/demo_steps.rb