Class: TestCard

Inherits:
Spree::CreditCard show all
Defined in:
lib/spree/testing_support/factories/credit_card_factory.rb

Overview

allows credit card info to be saved to the database which is needed for factories to work properly

Instance Attribute Summary

Attributes inherited from Spree::CreditCard

#number, #verification_value

Instance Method Summary collapse

Methods inherited from Spree::CreditCard

#actions, #brand, #can_capture?, #can_credit?, #can_void?, #display_number, #has_payment_profile?, #name, #name?, #set_card_type, #set_last_digits, #spree_cc_type, #verification_value?

Instance Method Details

#remove_readonly_attributes(attributes) ⇒ Object



3
# File 'lib/spree/testing_support/factories/credit_card_factory.rb', line 3

def remove_readonly_attributes(attributes) attributes; end