Open AlexO-123 opened 11 months ago
FakerMaker.factory :structured_address do buildingName { Faker::Address.building_number } thoroughfareName { Faker::Address.street_name } country { ['Wales', 'Scotland', 'Northern Ireland', 'England'].sample } postcode { Faker::Address.postcode } language { %w[EN CY].sample } postTown { Faker::Address.city } end FakerMaker.factory :user do name { Faker::Name.name } email { Faker::Internet.email } address { FakerMaker[:structured_address]} end
FM[:user].build should also build the address
added to v2.1.0
FM[:user].build should also build the address