mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-31 21:37:16 +00:00
Merge pull request #12156 from isidzukuri/issue_12062_fix_flacky_tax_rate_finder_spec
Improve random name generation in factories related to tax_rate_factory
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user