Sha256: 8ace4ea25250ccce45c018dba94cbb988cda69b9727e15151bc6ce9a8f1c0d22
Contents?: true
Size: 965 Bytes
Versions: 1
Compression:
Stored size: 965 Bytes
Contents
# frozen_string_literal: true FactoryBot.define do factory :bolt_configuration, class: SolidusBolt::BoltConfiguration do bearer_token { SecureRandom.hex } 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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
solidus_bolt-0.0.1 | lib/solidus_bolt/testing_support/factories.rb |