Sha256: 436c6d59d1a730fd98a7fe5a7fd41ca7568d781c2bc83ed6795d33ede27635e3

Contents?: true

Size: 374 Bytes

Versions: 32

Compression:

Stored size: 374 Bytes

Contents

FactoryGirl.define do
  factory :credit_card, class: Spree::CreditCard do
    verification_value 123
    month 12
    year { 1.year.from_now.year }
    number '4111111111111111'
    name 'Spree Commerce'
    association(:payment_method, factory: :credit_card_payment_method)
    association(:address)

    trait :failing do
      number "0000000000000000"
    end
  end
end

Version data entries

32 entries across 32 versions & 1 rubygems

Version Path
solidus_core-2.3.1 lib/spree/testing_support/factories/credit_card_factory.rb
solidus_core-2.2.2 lib/spree/testing_support/factories/credit_card_factory.rb
solidus_core-2.1.1 lib/spree/testing_support/factories/credit_card_factory.rb
solidus_core-2.0.3 lib/spree/testing_support/factories/credit_card_factory.rb
solidus_core-1.4.2 lib/spree/testing_support/factories/credit_card_factory.rb
solidus_core-1.3.2 lib/spree/testing_support/factories/credit_card_factory.rb
solidus_core-2.3.0 lib/spree/testing_support/factories/credit_card_factory.rb
solidus_core-2.3.0.rc3 lib/spree/testing_support/factories/credit_card_factory.rb
solidus_core-2.3.0.rc2 lib/spree/testing_support/factories/credit_card_factory.rb
solidus_core-2.3.0.rc1 lib/spree/testing_support/factories/credit_card_factory.rb
solidus_core-2.3.0.beta1 lib/spree/testing_support/factories/credit_card_factory.rb
solidus_core-2.0.2 lib/spree/testing_support/factories/credit_card_factory.rb
solidus_core-1.4.1 lib/spree/testing_support/factories/credit_card_factory.rb
solidus_core-2.2.1 lib/spree/testing_support/factories/credit_card_factory.rb
solidus_core-2.2.0 lib/spree/testing_support/factories/credit_card_factory.rb
solidus_core-2.2.0.rc1 lib/spree/testing_support/factories/credit_card_factory.rb
solidus_core-2.2.0.beta1 lib/spree/testing_support/factories/credit_card_factory.rb
solidus_core-2.1.0 lib/spree/testing_support/factories/credit_card_factory.rb
solidus_core-2.1.0.rc1 lib/spree/testing_support/factories/credit_card_factory.rb
solidus_core-2.0.1 lib/spree/testing_support/factories/credit_card_factory.rb