Sha256: f40de9b7a0f227487281dbdfa63d298bbe0f74930072324cf2d068f70ac77bb3

Contents?: true

Size: 391 Bytes

Versions: 6

Compression:

Stored size: 391 Bytes

Contents

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

FactoryGirl.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

6 entries across 6 versions & 1 rubygems

Version Path
solidus_core-2.3.1 lib/spree/testing_support/factories/tax_rate_factory.rb
solidus_core-2.3.0 lib/spree/testing_support/factories/tax_rate_factory.rb
solidus_core-2.3.0.rc3 lib/spree/testing_support/factories/tax_rate_factory.rb
solidus_core-2.3.0.rc2 lib/spree/testing_support/factories/tax_rate_factory.rb
solidus_core-2.3.0.rc1 lib/spree/testing_support/factories/tax_rate_factory.rb
solidus_core-2.3.0.beta1 lib/spree/testing_support/factories/tax_rate_factory.rb