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:
Maikel
2024-02-15 15:43:05 +11:00
committed by GitHub
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