1
0
Fork 0

Fix factory "country_state"

This commit is contained in:
Alex Kotov 2018-12-06 05:52:59 +05:00
parent 070930746d
commit 02bd924e6a
No known key found for this signature in database
GPG Key ID: 4E831250F47DE154
1 changed files with 5 additions and 1 deletions

View File

@ -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