Sha256: a161fbdcdae513b3bb32c882507ba4e9a668ef8413365aeffe1086750255890d
Contents?: true
Size: 607 Bytes
Versions: 3
Compression:
Stored size: 607 Bytes
Contents
# encoding: utf-8 # File: demo_steps.rb # A few step definitions for demo and testing purpose. When(/^I landed in the homepage$/) do trace_steps << 'Invoked step: ... I landed in the homepage' end When(/^I click "([^"]*)"$/) do |element| trace_steps << "Invoked step: ... I click \"#{element}\"" end When(/^I fill in "(.*?)" with "(.*?)"$/) do |element, text| trace_steps << "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 # End of file
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
macros4cuke-0.3.15 | features/step_definitions/demo_steps.rb |
macros4cuke-0.3.14 | features/step_definitions/demo_steps.rb |
macros4cuke-0.3.13 | features/step_definitions/demo_steps.rb |