Skip to content

Instantly share code, notes, and snippets.

@simonrentzke
Created February 16, 2012 06:00
Show Gist options
  • Save simonrentzke/1842486 to your computer and use it in GitHub Desktop.
Save simonrentzke/1842486 to your computer and use it in GitHub Desktop.
Forcing Card Type with ActiveMerchant Testing
Factory.define :user_credit_card do |cc|
cc.card_type "bogus"
cc.card_number 1
cc.verification_value "123"
cc.expiration_date Time.now + 1.year
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment