Fix shipping category factory

This commit is contained in:
Luis Ramos
2020-08-23 15:28:42 +01:00
parent 1ddda92f4d
commit cd22361d13

View File

@@ -1,7 +1,5 @@
FactoryBot.define do
factory :shipping_category, class: Spree::ShippingCategory do
initialize_with { DefaultShippingCategory.find_or_create }
transient { name 'Default' }
sequence(:name) { |n| "ShippingCategory ##{n}" }
end
end