diff options
author | HombreLaser <sebastian-440@live.com> | 2023-03-22 20:24:50 -0600 |
---|---|---|
committer | HombreLaser <sebastian-440@live.com> | 2023-03-22 20:24:50 -0600 |
commit | 243147833acff0e7d6e49b86de81e36837a176ea (patch) | |
tree | fc1a80db02455f80771cfba7a78a504f10db5198 /spec/factories | |
parent | e04c9e0fe1b9df2e8e40b87c8a272874192a8d07 (diff) |
Añade factory de Address
Diffstat (limited to 'spec/factories')
-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 |