mirror of
https://github.com/internetee/registry.git
synced 2025-08-04 08:52:04 +02:00
Added general user stamping on contact
This commit is contained in:
parent
86dc8321c6
commit
8ce1875484
6 changed files with 33 additions and 1 deletions
|
@ -12,6 +12,8 @@ describe 'EPP Contact', epp: true do
|
|||
expect(response[:result_code]).to eq('1000')
|
||||
expect(response[:msg]).to eq('Command completed successfully')
|
||||
expect(response[:clTRID]).to eq('ABC-12345')
|
||||
expect(Contact.first.created_by_id).to be 1
|
||||
expect(Contact.first.updated_by_id).to be nil
|
||||
|
||||
expect(Contact.count).to eq(1)
|
||||
expect(Contact.first.org_name).to eq('Example Inc.')
|
||||
|
@ -27,6 +29,10 @@ describe 'EPP Contact', epp: true do
|
|||
expect(Contact.first.name).to eq("John Doe")
|
||||
expect(Contact.first.ident_type).to eq("op")
|
||||
|
||||
expect(Contact.first.updated_by_id).to be 1
|
||||
#nil because we fabricate, hence stamping in controller won't happen
|
||||
expect(Contact.first.created_by_id).to be nil
|
||||
|
||||
expect(Contact.count).to eq(1)
|
||||
end
|
||||
#TODO tests for missing/invalid/etc ident
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue