Sha256: 6f5e31c4cdc38a1e4ea0cd6ce300ebd7303f626cd27fae3b6317497b59aea085

Contents?: true

Size: 388 Bytes

Versions: 56

Compression:

Stored size: 388 Bytes

Contents

# frozen_string_literal: true

require 'spree/testing_support/factory_bot'
Spree::TestingSupport::FactoryBot.when_cherry_picked do
  Spree::TestingSupport::FactoryBot.deprecate_cherry_picking
end

FactoryBot.define do
  factory :adjustment_reason, class: 'Spree::AdjustmentReason' do
    sequence(:name) { |n| "Refund for return ##{n}" }
    sequence(:code) { |n| "Code #{n}" }
  end
end

Version data entries

56 entries across 56 versions & 1 rubygems

Version Path
solidus_core-3.0.3 lib/spree/testing_support/factories/adjustment_reason_factory.rb
solidus_core-3.1.3 lib/spree/testing_support/factories/adjustment_reason_factory.rb
solidus_core-3.1.2 lib/spree/testing_support/factories/adjustment_reason_factory.rb
solidus_core-3.1.1 lib/spree/testing_support/factories/adjustment_reason_factory.rb
solidus_core-3.1.0 lib/spree/testing_support/factories/adjustment_reason_factory.rb
solidus_core-2.11.11 lib/spree/testing_support/factories/adjustment_reason_factory.rb
solidus_core-3.0.2 lib/spree/testing_support/factories/adjustment_reason_factory.rb
solidus_core-2.11.10 lib/spree/testing_support/factories/adjustment_reason_factory.rb
solidus_core-3.0.1 lib/spree/testing_support/factories/adjustment_reason_factory.rb
solidus_core-3.0.0 lib/spree/testing_support/factories/adjustment_reason_factory.rb
solidus_core-2.11.9 lib/spree/testing_support/factories/adjustment_reason_factory.rb
solidus_core-2.11.8 lib/spree/testing_support/factories/adjustment_reason_factory.rb
solidus_core-2.11.7 lib/spree/testing_support/factories/adjustment_reason_factory.rb
solidus_core-2.11.6 lib/spree/testing_support/factories/adjustment_reason_factory.rb
solidus_core-3.0.0.rc2 lib/spree/testing_support/factories/adjustment_reason_factory.rb
solidus_core-2.11.5 lib/spree/testing_support/factories/adjustment_reason_factory.rb