improve random name generation in factories related to tax_rate_factory

This commit is contained in:
isidzukuri
2024-02-14 18:41:28 +02:00
parent 164bac63e0
commit cffe573203
2 changed files with 2 additions and 2 deletions

View File

@@ -2,7 +2,7 @@
FactoryBot.define do
factory :tax_category, class: Spree::TaxCategory do
name { "TaxCategory - #{rand(999_999)}" }
sequence(:name) { |n| "TaxCategory - #{n}" }
description { generate(:random_string) }
end
end

View File

@@ -2,7 +2,7 @@
FactoryBot.define do
factory :zone, class: Spree::Zone do
name { generate(:random_string) }
sequence(:name) { |n| "#{generate(:random_string)}#{n}" }
description { generate(:random_string) }
end