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.10 lib/spree/testing_support/factories/return_authorization_factory.rb
spree_core-3.0.9 lib/spree/testing_support/factories/return_authorization_factory.rb
spree_core-3.0.8 lib/spree/testing_support/factories/return_authorization_factory.rb
spree_core-3.0.7 lib/spree/testing_support/factories/return_authorization_factory.rb
spree_core-3.0.6.1 lib/spree/testing_support/factories/return_authorization_factory.rb
spree_core-3.0.6 lib/spree/testing_support/factories/return_authorization_factory.rb
spree_core-3.0.5 lib/spree/testing_support/factories/return_authorization_factory.rb
spree_core-3.0.4 lib/spree/testing_support/factories/return_authorization_factory.rb
spree_core-2.4.10 lib/spree/testing_support/factories/return_authorization_factory.rb
spree_core-3.0.3 lib/spree/testing_support/factories/return_authorization_factory.rb
spree_core-2.4.9 lib/spree/testing_support/factories/return_authorization_factory.rb
spree_core-3.0.2 lib/spree/testing_support/factories/return_authorization_factory.rb
spree_core-2.4.8 lib/spree/testing_support/factories/return_authorization_factory.rb
solidus_core-1.0.0.pre lib/spree/testing_support/factories/return_authorization_factory.rb
spree_core-3.0.1 lib/spree/testing_support/factories/return_authorization_factory.rb
spree_core-2.4.7 lib/spree/testing_support/factories/return_authorization_factory.rb
spree_core-3.0.0 lib/spree/testing_support/factories/return_authorization_factory.rb
spree_core-2.4.6 lib/spree/testing_support/factories/return_authorization_factory.rb
spree_core-2.4.5 lib/spree/testing_support/factories/return_authorization_factory.rb
spree_core-3.0.0.rc4 lib/spree/testing_support/factories/return_authorization_factory.rb