Fix factory "country_state"
This commit is contained in:
parent
070930746d
commit
02bd924e6a
1 changed files with 5 additions and 1 deletions
|
@ -2,6 +2,10 @@
|
|||
|
||||
FactoryBot.define do
|
||||
factory :country_state do
|
||||
name { Faker::Address.unique.state }
|
||||
initialize_with do
|
||||
CountryState.find_or_initialize_by name: name
|
||||
end
|
||||
|
||||
name { Faker::Address.state }
|
||||
end
|
||||
end
|
||||
|
|
Reference in a new issue