Refactor registrar address to smaller pieces

This commit is contained in:
Martin Lensment 2015-02-03 17:09:10 +02:00
parent 107767e241
commit 39ea06ab17
8 changed files with 57 additions and 22 deletions

View file

@ -1,7 +1,10 @@
Fabricator(:registrar) do
name { sequence(:name) { |i| "Registrar #{i}" } }
reg_no { sequence(:reg_no) { |i| "123#{i}" } }
address 'Street 999, Town, County, Postal'
street 'Street 999'
city 'Town'
state 'County'
zip 'Postal'
email 'info@registrar1.ee'
country_code 'EE'
end
@ -9,13 +12,19 @@ end
Fabricator(:registrar1, from: :registrar) do
name 'registrar1'
reg_no '111'
address 'Street 111, Town, County, Postal'
street 'Street 111'
city 'Town'
state 'County'
zip 'Postal'
email 'info@registrar1.ee'
end
Fabricator(:registrar2, from: :registrar) do
name 'registrar2'
reg_no '222'
address 'Street 222, Town, County, Postal'
street 'Street 222'
city 'Town'
state 'County'
zip 'Postal'
email 'info@registrar2.ee'
end