Sha256: 00302437d806c0096bb3d0d5dbe318905d18694d3aa0c7720434d0d2f2246b6c

Contents?: true

Size: 722 Bytes

Versions: 24

Compression:

Stored size: 722 Bytes

Contents

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_authorization_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_authorization_reason)
  end

  factory :return_authorization_reason, class: Spree::ReturnAuthorizationReason do
    sequence(:name) { |n| "Defect ##{n}" }
    active true
    mutable false
  end
end

Version data entries

24 entries across 24 versions & 2 rubygems

Version Path
goca-spree-core-3.1.14.rails.5.0.1 lib/spree/testing_support/factories/return_authorization_factory.rb
goca-spree-core-3.1.14.rails.5.0 lib/spree/testing_support/factories/return_authorization_factory.rb
goca-spree-core-3.1.15.rails.5.0 lib/spree/testing_support/factories/return_authorization_factory.rb
goca-spree-core-3.1.15.pre.rails.pre.5.0 lib/spree/testing_support/factories/return_authorization_factory.rb
spree_core-3.4.6 lib/spree/testing_support/factories/return_authorization_factory.rb
spree_core-3.2.9 lib/spree/testing_support/factories/return_authorization_factory.rb
spree_core-3.6.6 lib/spree/testing_support/factories/return_authorization_factory.rb
spree_core-3.6.5 lib/spree/testing_support/factories/return_authorization_factory.rb
spree_core-3.6.4 lib/spree/testing_support/factories/return_authorization_factory.rb
spree_core-3.6.3 lib/spree/testing_support/factories/return_authorization_factory.rb
spree_core-3.6.2 lib/spree/testing_support/factories/return_authorization_factory.rb
spree_core-3.6.1 lib/spree/testing_support/factories/return_authorization_factory.rb
spree_core-3.6.0 lib/spree/testing_support/factories/return_authorization_factory.rb
spree_core-3.5.0 lib/spree/testing_support/factories/return_authorization_factory.rb
spree_core-3.3.6 lib/spree/testing_support/factories/return_authorization_factory.rb
spree_core-3.2.8 lib/spree/testing_support/factories/return_authorization_factory.rb
spree_core-3.6.0.rc1 lib/spree/testing_support/factories/return_authorization_factory.rb
spree_core-3.5.0.rc2 lib/spree/testing_support/factories/return_authorization_factory.rb
spree_core-3.5.0.rc1 lib/spree/testing_support/factories/return_authorization_factory.rb
spree_core-3.4.5 lib/spree/testing_support/factories/return_authorization_factory.rb