Sha256: 6a07e3b956716f5cab8372a4d8992bea81495019b76d1a23cccf2b1690c88437

Contents?: true

Size: 364 Bytes

Versions: 16

Compression:

Stored size: 364 Bytes

Contents

# allows credit card info to be saved to the database which is needed for factories to work properly
class TestCard < Spree::CreditCard
  def remove_readonly_attributes(attributes) attributes; end
end

FactoryGirl.define do
  factory :credit_card, :class => TestCard do
    verification_value 123
    month 12
    year 2013
    number '4111111111111111'
  end
end

Version data entries

16 entries across 16 versions & 2 rubygems

Version Path
spree_core-1.3.5 lib/spree/core/testing_support/factories/credit_card_factory.rb
spree_core-1.3.4 lib/spree/core/testing_support/factories/credit_card_factory.rb
spree_core-1.3.3 lib/spree/core/testing_support/factories/credit_card_factory.rb
spree_core-1.2.5 lib/spree/core/testing_support/factories/credit_card_factory.rb
spree_core-1.2.4 lib/spree/core/testing_support/factories/credit_card_factory.rb
spree_core-1.3.2 lib/spree/core/testing_support/factories/credit_card_factory.rb
spree_core-1.2.3 lib/spree/core/testing_support/factories/credit_card_factory.rb
spree_core-1.3.1 lib/spree/core/testing_support/factories/credit_card_factory.rb
spree_core-1.3.0 lib/spree/core/testing_support/factories/credit_card_factory.rb
spree_core-1.3.0.rc2 lib/spree/core/testing_support/factories/credit_card_factory.rb
dup_spree_core-1.3.0.rc1 lib/spree/core/testing_support/factories/credit_card_factory.rb
spree_core-1.3.0.rc1 lib/spree/core/testing_support/factories/credit_card_factory.rb
spree_core-1.2.2 lib/spree/core/testing_support/factories/credit_card_factory.rb
spree_core-1.2.0 lib/spree/core/testing_support/factories/credit_card_factory.rb
spree_core-1.2.0.rc2 lib/spree/core/testing_support/factories/credit_card_factory.rb
spree_core-1.2.0.rc1 lib/spree/core/testing_support/factories/credit_card_factory.rb