Sha256: 8d1db203f5be8e1005dcd680698e521b5bc1f8f4fe95be7c8208a3c0c925322d

Contents?: true

Size: 834 Bytes

Versions: 30

Compression:

Stored size: 834 Bytes

Contents

# Read about factories at https://github.com/thoughtbot/factory_girl

FactoryGirl.define do
  factory :mno_enterprise_credit_card, :class => 'CreditCard' do
    
    
    factory :credit_card, class: MnoEnterprise::CreditCard do
      sequence(:id)
      organization_id 265
      created_at 3.days.ago 
      updated_at 1.hour.ago 
      
      title 'Mr.'
      first_name 'John'
      last_name 'Doe'
      country 'AU'
      masked_number 'XXXX-XXXX-XXXX-4242'
      number nil
      month 3
      year 2025
      billing_address '102 Somewhere Street'
      billing_city 'Sydney'
      billing_postcode '2010'
      billing_country 'AU'
      verification_value 'CVV'
      
      # Properly build the resource with Her
      initialize_with { new(attributes).tap { |e| e.clear_attribute_changes! } }
    end
    
    
  end
end

Version data entries

30 entries across 30 versions & 1 rubygems

Version Path
mno-enterprise-core-3.4.0 lib/mno_enterprise/testing_support/factories/credit_card.rb
mno-enterprise-core-3.3.3 lib/mno_enterprise/testing_support/factories/credit_card.rb
mno-enterprise-core-3.3.2 lib/mno_enterprise/testing_support/factories/credit_card.rb
mno-enterprise-core-3.2.1 lib/mno_enterprise/testing_support/factories/credit_card.rb
mno-enterprise-core-3.3.1 lib/mno_enterprise/testing_support/factories/credit_card.rb
mno-enterprise-core-3.3.0 lib/mno_enterprise/testing_support/factories/credit_card.rb
mno-enterprise-core-3.2.0 lib/mno_enterprise/testing_support/factories/credit_card.rb
mno-enterprise-core-3.1.4 lib/mno_enterprise/testing_support/factories/credit_card.rb
mno-enterprise-core-3.0.7 lib/mno_enterprise/testing_support/factories/credit_card.rb
mno-enterprise-core-2.0.9 lib/mno_enterprise/testing_support/factories/credit_card.rb
mno-enterprise-core-3.1.3 lib/mno_enterprise/testing_support/factories/credit_card.rb
mno-enterprise-core-3.0.6 lib/mno_enterprise/testing_support/factories/credit_card.rb
mno-enterprise-core-2.0.8 lib/mno_enterprise/testing_support/factories/credit_card.rb
mno-enterprise-core-3.1.2 lib/mno_enterprise/testing_support/factories/credit_card.rb
mno-enterprise-core-3.0.5 lib/mno_enterprise/testing_support/factories/credit_card.rb
mno-enterprise-core-2.0.7 lib/mno_enterprise/testing_support/factories/credit_card.rb
mno-enterprise-core-2.0.6 lib/mno_enterprise/testing_support/factories/credit_card.rb
mno-enterprise-core-2.0.5 lib/mno_enterprise/testing_support/factories/credit_card.rb
mno-enterprise-core-3.1.1 lib/mno_enterprise/testing_support/factories/credit_card.rb
mno-enterprise-core-3.0.4 lib/mno_enterprise/testing_support/factories/credit_card.rb