1
0
Fork 0
This repository has been archived on 2023-03-27. You can view files and clone it, but cannot push or open issues or pull requests.
lpr-partynest/factories/federal_subjects.rb
2019-06-23 20:59:44 +05:00

17 lines
332 B
Ruby

# frozen_string_literal: true
FactoryBot.define do
factory :federal_subject do
initialize_with do
FederalSubject.find_or_initialize_by english_name: english_name
end
english_name do
I18n.with_locale :en do
Faker::Address.unique.state
end
end
native_name { english_name }
end
end