Sha256: cf130c8da894ec92c011be59c4c1a6983d2a9c1434d8276ee6af80aec0f297ba

Contents?: true

Size: 321 Bytes

Versions: 15

Compression:

Stored size: 321 Bytes

Contents

Factory.sequence(:tax_category_sequence) {|n| "TaxCategory ##{n}"}

Factory.define(:tax_category) do |record|
  record.name { "TaxCategory - #{rand(999999)}" }
  record.description { Faker::Lorem.sentence }

  record.tax_rates {[TaxRate.new(:amount => 0.05, :calculator => Calculator::Vat.new, :zone => Zone.global)]}
end

Version data entries

15 entries across 15 versions & 2 rubygems

Version Path
spree-0.11.4 test/factories/tax_category_factory.rb
spree-0.11.3 test/factories/tax_category_factory.rb
spree-0.11.2 test/factories/tax_category_factory.rb
spree-0.11.1 test/factories/tax_category_factory.rb
spree-0.11.0 test/factories/tax_category_factory.rb
spree-0.10.2 test/factories/tax_category_factory.rb
spree-0.10.1 test/factories/tax_category_factory.rb
spree-0.10.0 test/factories/tax_category_factory.rb
spree-0.10.0.beta test/factories/tax_category_factory.rb
spree-enriquez-0.9.4 test/factories/tax_category_factory.rb
spree-0.9.4 test/factories/tax_category_factory.rb
spree-0.9.3 test/factories/tax_category_factory.rb
spree-0.9.2 test/factories/tax_category_factory.rb
spree-0.9.1 test/factories/tax_category_factory.rb
spree-0.9.0 test/factories/tax_category_factory.rb