Skip to content

Instantly share code, notes, and snippets.

@mattpolito
Created March 15, 2011 22:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mattpolito/871663 to your computer and use it in GitHub Desktop.
Save mattpolito/871663 to your computer and use it in GitHub Desktop.
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