Sha256: c3fe713af061fb7e58a1f04176ea317d7d482a5e0d34d710cfd90bce6dc36a19

Contents?: true

Size: 566 Bytes

Versions: 24

Compression:

Stored size: 566 Bytes

Contents

# frozen_string_literal: true

FactoryBot.define do
  factory :return_authorization, class: 'Spree::ReturnAuthorization' do
    association(:order, factory: :shipped_order)
    association(:stock_location, factory: :stock_location)
    association(:reason, factory: :return_reason)
    memo { 'Items were broken' }
  end

  factory :new_return_authorization, class: 'Spree::ReturnAuthorization' do
    association(:order, factory: :shipped_order)
    association(:stock_location, factory: :stock_location)
    association(:reason, factory: :return_reason)
  end
end

Version data entries

24 entries across 24 versions & 1 rubygems

Version Path
solidus_core-4.4.2 lib/spree/testing_support/factories/return_authorization_factory.rb
solidus_core-4.4.1 lib/spree/testing_support/factories/return_authorization_factory.rb
solidus_core-4.4.0 lib/spree/testing_support/factories/return_authorization_factory.rb
solidus_core-4.3.4 lib/spree/testing_support/factories/return_authorization_factory.rb
solidus_core-4.2.4 lib/spree/testing_support/factories/return_authorization_factory.rb
solidus_core-4.1.5 lib/spree/testing_support/factories/return_authorization_factory.rb
solidus_core-4.3.3 lib/spree/testing_support/factories/return_authorization_factory.rb
solidus_core-4.3.2 lib/spree/testing_support/factories/return_authorization_factory.rb
solidus_core-4.1.4 lib/spree/testing_support/factories/return_authorization_factory.rb
solidus_core-4.3.1 lib/spree/testing_support/factories/return_authorization_factory.rb
solidus_core-4.3.0 lib/spree/testing_support/factories/return_authorization_factory.rb
solidus_core-4.2.3 lib/spree/testing_support/factories/return_authorization_factory.rb
solidus_core-4.1.3 lib/spree/testing_support/factories/return_authorization_factory.rb
solidus_core-4.0.4 lib/spree/testing_support/factories/return_authorization_factory.rb
solidus_core-4.0.3 lib/spree/testing_support/factories/return_authorization_factory.rb
solidus_core-4.1.2 lib/spree/testing_support/factories/return_authorization_factory.rb
solidus_core-4.2.2 lib/spree/testing_support/factories/return_authorization_factory.rb
solidus_core-4.2.1 lib/spree/testing_support/factories/return_authorization_factory.rb
solidus_core-4.2.0 lib/spree/testing_support/factories/return_authorization_factory.rb
solidus_core-4.1.1 lib/spree/testing_support/factories/return_authorization_factory.rb