diff --git a/spec/factories/country_factory.rb b/spec/factories/country_factory.rb new file mode 100644 index 0000000000..3ea69913ba --- /dev/null +++ b/spec/factories/country_factory.rb @@ -0,0 +1,9 @@ +FactoryBot.define do + factory :country, class: Spree::Country do + iso_name 'UNITED STATES' + name 'United States of America' + iso 'US' + iso3 'USA' + numcode 840 + end +end diff --git a/spec/factories/inventory_unit_factory.rb b/spec/factories/inventory_unit_factory.rb new file mode 100644 index 0000000000..1bcf71d7d0 --- /dev/null +++ b/spec/factories/inventory_unit_factory.rb @@ -0,0 +1,8 @@ +FactoryBot.define do + factory :inventory_unit, class: Spree::InventoryUnit do + variant + order + state 'on_hand' + association(:shipment, factory: :shipment, state: 'pending') + end +end diff --git a/spec/factories/product_option_type_factory.rb b/spec/factories/product_option_type_factory.rb new file mode 100644 index 0000000000..2b6e52b644 --- /dev/null +++ b/spec/factories/product_option_type_factory.rb @@ -0,0 +1,6 @@ +FactoryBot.define do + factory :product_option_type, class: Spree::ProductOptionType do + product + option_type + end +end diff --git a/spec/factories/product_property_factory.rb b/spec/factories/product_property_factory.rb new file mode 100644 index 0000000000..9844faea47 --- /dev/null +++ b/spec/factories/product_property_factory.rb @@ -0,0 +1,6 @@ +FactoryBot.define do + factory :product_property, class: Spree::ProductProperty do + product + property + end +end diff --git a/spec/factories/property_factory.rb b/spec/factories/property_factory.rb new file mode 100644 index 0000000000..552c6f9738 --- /dev/null +++ b/spec/factories/property_factory.rb @@ -0,0 +1,6 @@ +FactoryBot.define do + factory :property, class: Spree::Property do + name 'baseball_cap_color' + presentation 'cap color' + end +end diff --git a/spec/factories/tax_rate_factory.rb b/spec/factories/tax_rate_factory.rb new file mode 100644 index 0000000000..1d1977074f --- /dev/null +++ b/spec/factories/tax_rate_factory.rb @@ -0,0 +1,7 @@ +FactoryBot.define do + factory :tax_rate, class: Spree::TaxRate do + zone + amount 100.00 + tax_category + end +end diff --git a/spec/factories/zone_factory.rb b/spec/factories/zone_factory.rb new file mode 100644 index 0000000000..d256fbdb63 --- /dev/null +++ b/spec/factories/zone_factory.rb @@ -0,0 +1,6 @@ +FactoryBot.define do + factory :zone, class: Spree::Zone do + name { generate(:random_string) } + description { generate(:random_string) } + end +end