Sha256: a669e7ebfa223e4d6184abfe8136129d9ec6e6931aa8b86dc4716e842aff6eb4

Contents?: true

Size: 749 Bytes

Versions: 48

Compression:

Stored size: 749 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 :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

48 entries across 48 versions & 2 rubygems

Version Path
solidus_core-2.10.5 lib/spree/testing_support/factories/calculator_factory.rb
solidus_core-2.11.3 lib/spree/testing_support/factories/calculator_factory.rb
solidus_core-2.11.2 lib/spree/testing_support/factories/calculator_factory.rb
solidus_core-2.11.1 lib/spree/testing_support/factories/calculator_factory.rb
solidus_core-2.10.3 lib/spree/testing_support/factories/calculator_factory.rb
solidus_core-2.11.0 lib/spree/testing_support/factories/calculator_factory.rb
solidus_core-2.10.2 lib/spree/testing_support/factories/calculator_factory.rb
solidus_core-2.9.6 lib/spree/testing_support/factories/calculator_factory.rb
solidus_core-2.8.6 lib/spree/testing_support/factories/calculator_factory.rb
solidus_core-2.10.1 lib/spree/testing_support/factories/calculator_factory.rb
solidus_core-2.9.5 lib/spree/testing_support/factories/calculator_factory.rb
solidus_core-2.10.0 lib/spree/testing_support/factories/calculator_factory.rb
solidus_core-2.9.4 lib/spree/testing_support/factories/calculator_factory.rb
solidus_core-2.6.6 lib/spree/testing_support/factories/calculator_factory.rb
solidus_core-2.7.4 lib/spree/testing_support/factories/calculator_factory.rb
solidus_core-2.8.5 lib/spree/testing_support/factories/calculator_factory.rb
solidus_core-2.9.3 lib/spree/testing_support/factories/calculator_factory.rb
solidus_core-2.9.2 lib/spree/testing_support/factories/calculator_factory.rb
solidus_core-2.10.0.beta1 lib/spree/testing_support/factories/calculator_factory.rb
solidus_core-2.7.3 lib/spree/testing_support/factories/calculator_factory.rb