Sha256: 31faa4ee0f1f042adf6bff561fa1cce49036d1553dcbb1665ef4f8de5fb91313
Contents?: true
Size: 575 Bytes
Versions: 4
Compression:
Stored size: 575 Bytes
Contents
# frozen_string_literal: true require 'spree/testing_support/factories/payment_factory' require 'spree/testing_support/factories/refund_reason_factory' FactoryBot.define do sequence(:refund_transaction_id) { |n| "fake-refund-transaction-#{n}" } factory :refund, class: 'Spree::Refund' do transient do payment_amount 100 end amount 100.00 transaction_id { generate(:refund_transaction_id) } payment do association(:payment, state: 'completed', amount: payment_amount) end association(:reason, factory: :refund_reason) end end
Version data entries
4 entries across 4 versions & 1 rubygems