Sha256: c7ad8e3a7a44809c42b704dc5fdaa5265e92c1163014e27b1c514fd531d7f2d1
Contents?: true
Size: 593 Bytes
Versions: 1
Compression:
Stored size: 593 Bytes
Contents
# frozen_string_literal: true require 'spree/testing_support' Spree::TestingSupport.deprecate_cherry_picking_factory_bot_files 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) } perform_after_create { false } payment do association(:payment, state: 'completed', amount: payment_amount) end association(:reason, factory: :refund_reason) end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
solidus_core-2.11.4 | lib/spree/testing_support/factories/refund_factory.rb |