diff options
Diffstat (limited to 'spec/factories/address.rb')
-rw-r--r-- | spec/factories/address.rb | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/spec/factories/address.rb b/spec/factories/address.rb new file mode 100644 index 0000000..c5c7170 --- /dev/null +++ b/spec/factories/address.rb @@ -0,0 +1,11 @@ +# frozen_string_literal: true + +FactoryBot.define do + factory :address, class: 'Address' do + number { Faker::Address.building_number.to_i } + street { Faker::Address.street_name } + zip_code { Faker::Address.zip_code } + country { ISO3166::Country.codes.sample } + city { Faker::Address.city } + end +end |