Sha256: 9e97a75ae55d0440ed9952d9f643ba013882b6d8a726ab92c4ee7c9d496410f0
Contents?: true
Size: 1.18 KB
Versions: 3
Compression:
Stored size: 1.18 KB
Contents
CUSTOMER = /(?:(?:an?|the) customer|#{TEDDY_BEAR})/ TEDDY_BEAR = /teddy bear/ Transform /^an? customer$/ do |customer| "a transformed customer" end Transform /^the customer$/ do |customer| "the transformed customer" end Given /^that (#{CUSTOMER}) is a valid customer$/ do |customer| pending "Customer #{customer} validation" end When /^a customer logs in as username '([^']+)' with password '([^']+)'$/ do |username,password| pending "Customer logs in with #{username} and #{password}" end Then /^I expect them to have logged in successfully$/ do pending "Validation that the customer has logged in successfully" end When /^the customer logs out$/ do pending end Then /^I expect the customer to be shown the logout page$/ do pending end And /^this third defined step definition$/ do pending end And /^the customer has the following details:$/ do |table| pending "Table of data #{table.hashes}" end And /^edits their the biography to state:$/ do |bio| pending "text_field not present for bio #{bio} for this release" end # # Some details about the helper method that might be picked up in the documentation. # def a_helper_method puts "performs some operation" end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
cucumber-in-the-yard-1.5 | example/step_definitions/example.step.rb |
cucumber-in-the-yard-1.4 | example/step_definitions/example.step.rb |
cucumber-in-the-yard-1.3 | example/example.step.rb |