summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authorHombreLaser <sebastian-440@live.com>2023-03-22 20:24:50 -0600
committerHombreLaser <sebastian-440@live.com>2023-03-22 20:24:50 -0600
commit243147833acff0e7d6e49b86de81e36837a176ea (patch)
treefc1a80db02455f80771cfba7a78a504f10db5198 /spec
parente04c9e0fe1b9df2e8e40b87c8a272874192a8d07 (diff)
Añade factory de Address
Diffstat (limited to 'spec')
-rw-r--r--spec/factories/address.rb11
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