Sha256: 737675d6a534e089cc5a15548f43946638db1f6bf62b43003cea50c54fc6885b

Contents?: true

Size: 392 Bytes

Versions: 4

Compression:

Stored size: 392 Bytes

Contents

require 'spree/testing_support/factories/calculator_factory'
require 'spree/testing_support/factories/tax_category_factory'
require 'spree/testing_support/factories/zone_factory'

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

4 entries across 4 versions & 1 rubygems

Version Path
solidus_core-2.5.0 lib/spree/testing_support/factories/tax_rate_factory.rb
solidus_core-2.5.0.rc1 lib/spree/testing_support/factories/tax_rate_factory.rb
solidus_core-2.5.0.beta2 lib/spree/testing_support/factories/tax_rate_factory.rb
solidus_core-2.5.0.beta1 lib/spree/testing_support/factories/tax_rate_factory.rb