mirror of
https://github.com/internetee/registry.git
synced 2025-08-02 16:02:03 +02:00
Refactor registrar address to smaller pieces
This commit is contained in:
parent
107767e241
commit
39ea06ab17
8 changed files with 57 additions and 22 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue