Sha256: ddc7cf1d2dcbac46965a4cb1ad336115d1061a60d36129ffb12ac824fba0a24f

Contents?: true

Size: 689 Bytes

Versions: 30

Compression:

Stored size: 689 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}" }
  end
end

Version data entries

30 entries across 30 versions & 2 rubygems

Version Path
spree_core-3.0.0.rc3 lib/spree/testing_support/factories/return_authorization_factory.rb
spree_core-2.4.4 lib/spree/testing_support/factories/return_authorization_factory.rb
spree_core-3.0.0.rc1 lib/spree/testing_support/factories/return_authorization_factory.rb
spree_core-2.4.3 lib/spree/testing_support/factories/return_authorization_factory.rb
spree_core-2.4.2 lib/spree/testing_support/factories/return_authorization_factory.rb
spree_core-2.4.1 lib/spree/testing_support/factories/return_authorization_factory.rb
spree_core-2.4.0 lib/spree/testing_support/factories/return_authorization_factory.rb
spree_core-2.4.0.rc3 lib/spree/testing_support/factories/return_authorization_factory.rb
spree_core-2.4.0.rc2 lib/spree/testing_support/factories/return_authorization_factory.rb
spree_core-2.4.0.rc1 lib/spree/testing_support/factories/return_authorization_factory.rb