Sha256: 201c06d7693da80f7420bceffd39eac6203f72435db1e9b936dbca652663fa44
Contents?: true
Size: 927 Bytes
Versions: 2
Compression:
Stored size: 927 Bytes
Contents
# frozen_string_literal: true FactoryBot.define do factory :bolt_configuration, class: SolidusBolt::BoltConfiguration do environment { 'sandbox' } merchant_public_id { SecureRandom.hex } division_public_id { SecureRandom.hex } api_key { SecureRandom.hex } signing_secret { SecureRandom.hex } publishable_key { SecureRandom.hex } end factory :bolt_payment_method, class: SolidusBolt::PaymentMethod do name { 'Bolt' } preference_source { 'bolt_credentials' } available_to_admin { true } available_to_users { true } end factory :bolt_payment_source, class: SolidusBolt::PaymentSource do create_bolt_account { false } payment_method end factory :bolt_payment, class: Spree::Payment do association(:payment_method, factory: :bolt_payment_method) association(:source, factory: :bolt_payment_source) order state { 'checkout' } end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
solidus_bolt-0.2.0 | lib/solidus_bolt/testing_support/factories.rb |
solidus_bolt-0.1.0 | lib/solidus_bolt/testing_support/factories.rb |