Sha256: f065f869a8fe448116eb729432ad1f25ce2b5b64859b79b8a964915c76658be4

Contents?: true

Size: 714 Bytes

Versions: 39

Compression:

Stored size: 714 Bytes

Contents

require 'spree/testing_support/factories/order_factory'
require 'spree/testing_support/factories/stock_location_factory'
require 'spree/testing_support/factories/return_reason_factory'

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_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

39 entries across 39 versions & 1 rubygems

Version Path
solidus_core-2.3.1 lib/spree/testing_support/factories/return_authorization_factory.rb
solidus_core-2.2.2 lib/spree/testing_support/factories/return_authorization_factory.rb
solidus_core-2.1.1 lib/spree/testing_support/factories/return_authorization_factory.rb
solidus_core-2.0.3 lib/spree/testing_support/factories/return_authorization_factory.rb
solidus_core-1.4.2 lib/spree/testing_support/factories/return_authorization_factory.rb
solidus_core-1.3.2 lib/spree/testing_support/factories/return_authorization_factory.rb
solidus_core-1.2.3 lib/spree/testing_support/factories/return_authorization_factory.rb
solidus_core-2.3.0 lib/spree/testing_support/factories/return_authorization_factory.rb
solidus_core-2.3.0.rc3 lib/spree/testing_support/factories/return_authorization_factory.rb
solidus_core-2.3.0.rc2 lib/spree/testing_support/factories/return_authorization_factory.rb
solidus_core-2.3.0.rc1 lib/spree/testing_support/factories/return_authorization_factory.rb
solidus_core-2.3.0.beta1 lib/spree/testing_support/factories/return_authorization_factory.rb
solidus_core-2.0.2 lib/spree/testing_support/factories/return_authorization_factory.rb
solidus_core-1.4.1 lib/spree/testing_support/factories/return_authorization_factory.rb
solidus_core-2.2.1 lib/spree/testing_support/factories/return_authorization_factory.rb
solidus_core-2.2.0 lib/spree/testing_support/factories/return_authorization_factory.rb
solidus_core-2.2.0.rc1 lib/spree/testing_support/factories/return_authorization_factory.rb
solidus_core-2.2.0.beta1 lib/spree/testing_support/factories/return_authorization_factory.rb
solidus_core-2.1.0 lib/spree/testing_support/factories/return_authorization_factory.rb
solidus_core-2.1.0.rc1 lib/spree/testing_support/factories/return_authorization_factory.rb