mirror of
https://github.com/internetee/registry.git
synced 2025-05-17 17:59:47 +02:00
18 lines
536 B
Ruby
18 lines
536 B
Ruby
Fabricator(:registrant) do
|
|
registrar { Fabricate(:registrar) }
|
|
code { sequence(:code) { |i| "REGISTRANT#{i}#{rand(1000)}" } }
|
|
auth_info 'password'
|
|
name 'test name'
|
|
phone '+372.12345678'
|
|
email { sequence(:email) { |i| "test#{i}@test.com" } }
|
|
street 'Short street 11'
|
|
city 'Tallinn'
|
|
zip '11111'
|
|
country_code 'EE'
|
|
ident '37605030299'
|
|
ident_type 'priv'
|
|
ident_country_code 'EE'
|
|
# rubocop: disable Style/SymbolProc
|
|
after_validation { |c| c.disable_generate_auth_info! }
|
|
# rubocop: enamble Style/SymbolProc
|
|
end
|