Sha256: 0e87f706479a82ae8bc1508ddca11758db91c7e615605253af0351ad725bb6c9

Contents?: true

Size: 247 Bytes

Versions: 24

Compression:

Stored size: 247 Bytes

Contents

# frozen_string_literal: true

FactoryBot.define do
  factory :tax_rate, class: 'Spree::TaxRate' do
    zone
    amount { 0.1 }
    association(:calculator, factory: :default_tax_calculator)
    tax_categories { [build(:tax_category)] }
  end
end

Version data entries

24 entries across 24 versions & 1 rubygems

Version Path
solidus_core-4.4.2 lib/spree/testing_support/factories/tax_rate_factory.rb
solidus_core-4.4.1 lib/spree/testing_support/factories/tax_rate_factory.rb
solidus_core-4.4.0 lib/spree/testing_support/factories/tax_rate_factory.rb
solidus_core-4.3.4 lib/spree/testing_support/factories/tax_rate_factory.rb
solidus_core-4.2.4 lib/spree/testing_support/factories/tax_rate_factory.rb
solidus_core-4.1.5 lib/spree/testing_support/factories/tax_rate_factory.rb
solidus_core-4.3.3 lib/spree/testing_support/factories/tax_rate_factory.rb
solidus_core-4.3.2 lib/spree/testing_support/factories/tax_rate_factory.rb
solidus_core-4.1.4 lib/spree/testing_support/factories/tax_rate_factory.rb
solidus_core-4.3.1 lib/spree/testing_support/factories/tax_rate_factory.rb
solidus_core-4.3.0 lib/spree/testing_support/factories/tax_rate_factory.rb
solidus_core-4.2.3 lib/spree/testing_support/factories/tax_rate_factory.rb
solidus_core-4.1.3 lib/spree/testing_support/factories/tax_rate_factory.rb
solidus_core-4.0.4 lib/spree/testing_support/factories/tax_rate_factory.rb
solidus_core-4.0.3 lib/spree/testing_support/factories/tax_rate_factory.rb
solidus_core-4.1.2 lib/spree/testing_support/factories/tax_rate_factory.rb
solidus_core-4.2.2 lib/spree/testing_support/factories/tax_rate_factory.rb
solidus_core-4.2.1 lib/spree/testing_support/factories/tax_rate_factory.rb
solidus_core-4.2.0 lib/spree/testing_support/factories/tax_rate_factory.rb
solidus_core-4.1.1 lib/spree/testing_support/factories/tax_rate_factory.rb