Sha256: 3c36a00c226e0af5169fac16ec8e2e237847064fe698a101cc4b50f03d186056

Contents?: true

Size: 723 Bytes

Versions: 43

Compression:

Stored size: 723 Bytes

Contents

FactoryGirl.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

43 entries across 43 versions & 1 rubygems

Version Path
spree_core-3.3.0.rc4 lib/spree/testing_support/factories/return_authorization_factory.rb
spree_core-3.3.0.rc3 lib/spree/testing_support/factories/return_authorization_factory.rb
spree_core-3.1.7 lib/spree/testing_support/factories/return_authorization_factory.rb
spree_core-3.2.3 lib/spree/testing_support/factories/return_authorization_factory.rb
spree_core-3.2.2 lib/spree/testing_support/factories/return_authorization_factory.rb
spree_core-3.3.0.rc2 lib/spree/testing_support/factories/return_authorization_factory.rb
spree_core-3.1.6 lib/spree/testing_support/factories/return_authorization_factory.rb
spree_core-3.3.0.rc1 lib/spree/testing_support/factories/return_authorization_factory.rb
spree_core-3.1.5 lib/spree/testing_support/factories/return_authorization_factory.rb
spree_core-3.2.1 lib/spree/testing_support/factories/return_authorization_factory.rb
spree_core-3.2.0 lib/spree/testing_support/factories/return_authorization_factory.rb
spree_core-3.1.4 lib/spree/testing_support/factories/return_authorization_factory.rb
spree_core-3.2.0.rc3 lib/spree/testing_support/factories/return_authorization_factory.rb
spree_core-3.2.0.rc2 lib/spree/testing_support/factories/return_authorization_factory.rb
spree_core-3.2.0.rc1 lib/spree/testing_support/factories/return_authorization_factory.rb
spree_core-3.1.3 lib/spree/testing_support/factories/return_authorization_factory.rb
spree_core-3.1.2 lib/spree/testing_support/factories/return_authorization_factory.rb
spree_core-3.1.1 lib/spree/testing_support/factories/return_authorization_factory.rb
spree_core-3.1.0 lib/spree/testing_support/factories/return_authorization_factory.rb
spree_core-3.1.0.rc4 lib/spree/testing_support/factories/return_authorization_factory.rb