Sha256: a5debccbacfef03befad1c096d910ef8540c8dbd1d1c232609821b5c3ba9369a
Contents?: true
Size: 832 Bytes
Versions: 15
Compression:
Stored size: 832 Bytes
Contents
Given(/^I have done a specific thing$/) do # Sample step definition # Example: (Given I am logged in) # enter_text("* marked:'username'", USERNAME) # enter_text("* marked:'password'", PASSWORD) # touch("* marked:'login'") # wait_for_view("* text:'Welcome #{USERNAME}'") # Remember: any Ruby is allowed in your step definitions did_something = true unless did_something fail 'Expected to have done something' end end When(/^I do something$/) do # Sample step definition # Example: When I create a new entry # touch("* marked:'new_entry'") # enter_text("* marked:'entry_title'", 'My Entry') # touch("* marked:'submit'") end Then(/^something should happen$/) do # Sample step definition # Example: Then I should see the entry on my home page # wait_for_view("* text:'My Entry'") end
Version data entries
15 entries across 15 versions & 1 rubygems