Skip to content

Instantly share code, notes, and snippets.

@woodybrood
Created August 13, 2012 15:54
Show Gist options
  • Save woodybrood/3342117 to your computer and use it in GitHub Desktop.
Save woodybrood/3342117 to your computer and use it in GitHub Desktop.
Frank Style Calculator Steps
Then /^I should see a Result of (\d+)$/ do |result|
list_of_text_contents = frankly_map( "view:'UITextField' marked:'Result'", "text" )
list_of_text_contents.should have(1).item # make sure we only matched one view with our selector
list_of_text_contents.first.should == result
end
When /^I enter (\d+)$/ do |value|
value.each_char do |number|
touch "view:'UIButton' marked:'#{number}button"
end
touch "view:'UIButton' marked:'Enter'"
end
When /^I tap \*$/ do
touch "view:'UIButton' marked:'*button'"
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment