Sha256: b2094495ff35babada078de5e2c8707666968a5b4fbeab366ffaf2135eba0980

Contents?: true

Size: 827 Bytes

Versions: 21

Compression:

Stored size: 827 Bytes

Contents

# frozen_string_literal: true

FactoryBot.define do
  factory :calculator, aliases: [:flat_rate_calculator], class: 'Spree::Calculator::FlatRate' do
    preferred_amount { 10.0 }
  end

  factory :no_amount_calculator, class: 'Spree::Calculator::FlatRate' do
    preferred_amount { 0 }
  end

  factory :default_tax_calculator, class: 'Spree::Calculator::DefaultTax' do
  end

  factory :flat_fee_calculator, class: 'Spree::Calculator::FlatFee' do
  end

  factory :shipping_calculator, class: 'Spree::Calculator::Shipping::FlatRate' do
    preferred_amount { 10.0 }
  end

  factory :shipping_no_amount_calculator, class: 'Spree::Calculator::Shipping::FlatRate' do
    preferred_amount { 0 }
  end

  factory :percent_on_item_calculator, class: 'Spree::Calculator::PercentOnLineItem' do
    preferred_percent { 10 }
  end
end

Version data entries

21 entries across 21 versions & 1 rubygems

Version Path
solidus_core-4.3.4 lib/spree/testing_support/factories/calculator_factory.rb
solidus_core-4.2.4 lib/spree/testing_support/factories/calculator_factory.rb
solidus_core-4.1.5 lib/spree/testing_support/factories/calculator_factory.rb
solidus_core-4.3.3 lib/spree/testing_support/factories/calculator_factory.rb
solidus_core-4.3.2 lib/spree/testing_support/factories/calculator_factory.rb
solidus_core-4.1.4 lib/spree/testing_support/factories/calculator_factory.rb
solidus_core-4.3.1 lib/spree/testing_support/factories/calculator_factory.rb
solidus_core-4.3.0 lib/spree/testing_support/factories/calculator_factory.rb
solidus_core-4.2.3 lib/spree/testing_support/factories/calculator_factory.rb
solidus_core-4.1.3 lib/spree/testing_support/factories/calculator_factory.rb
solidus_core-4.0.4 lib/spree/testing_support/factories/calculator_factory.rb
solidus_core-4.0.3 lib/spree/testing_support/factories/calculator_factory.rb
solidus_core-4.1.2 lib/spree/testing_support/factories/calculator_factory.rb
solidus_core-4.2.2 lib/spree/testing_support/factories/calculator_factory.rb
solidus_core-4.2.1 lib/spree/testing_support/factories/calculator_factory.rb
solidus_core-4.2.0 lib/spree/testing_support/factories/calculator_factory.rb
solidus_core-4.1.1 lib/spree/testing_support/factories/calculator_factory.rb
solidus_core-4.0.2 lib/spree/testing_support/factories/calculator_factory.rb
solidus_core-4.0.1 lib/spree/testing_support/factories/calculator_factory.rb
solidus_core-4.1.0 lib/spree/testing_support/factories/calculator_factory.rb