Created
March 15, 2011 22:37
-
-
Save mattpolito/871663 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
When /^I fill in payment info that results in success$/ do | |
When %{I fill in payment info with: | |
| Card Number | 1 | | |
| Expiration | 1/2012 | | |
| Card Verification | 999 | | |
| Zipcode | 60120 |} | |
end | |
When /^I fill in payment info with:$/ do |table| | |
within "fieldset.payment.info" do | |
new_table = table.transpose | |
new_table.hashes.first.each do |key, value| | |
When %{I fill in "#{key}" with "#{value}"} | |
end | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment