mirror of
https://github.com/internetee/registry.git
synced 2025-05-20 19:29:39 +02:00
Fixed name already exists issue for robot
This commit is contained in:
parent
5f40db94ba
commit
d1a2c863bf
1 changed files with 2 additions and 2 deletions
|
@ -1,5 +1,5 @@
|
|||
Fabricator(:contact) do
|
||||
code { "sh#{Faker::Number.number(8)}" }
|
||||
code { sequence(:code) { |i| "sh#{Faker::Number.number(8)}#{i}" } }
|
||||
auth_info 'password'
|
||||
name { sequence(:name) { |i| "#{Faker::Name.name}#{i}" } }
|
||||
phone '+372.12345678'
|
||||
|
@ -8,7 +8,7 @@ Fabricator(:contact) do
|
|||
ident_type 'priv'
|
||||
ident_country_code 'EE'
|
||||
address
|
||||
registrar { Fabricate(:registrar, name: Faker::Company.name, reg_no: Faker::Company.duns_number) }
|
||||
registrar { Fabricate(:registrar) }
|
||||
disclosure { Fabricate(:contact_disclosure) }
|
||||
# rubocop: disable Style/SymbolProc
|
||||
after_validation { |c| c.disable_generate_auth_info! }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue