FactoryGirl.define do factory :agency, class: 'Logistics::Core::Agency' do code { FFaker::Name.name } name { FFaker::Name.name } telephone { FFaker::PhoneNumberBR.home_work_phone_number } contact_person { FFaker::Name.name } city { FFaker::Name.name } subcity { FFaker::Name.name } woreda 1 house_no { FFaker::Name.name } email { FFaker::Name.name } postal_code { FFaker::Name.name } contact_telephone { FFaker::PhoneNumberBR.home_work_phone_number } contact_email { FFaker::Name.name } association :agency_category end end