mirror of
https://github.com/internetee/registry.git
synced 2025-07-25 20:18:22 +02:00
Allow invalid ident update #2859
This commit is contained in:
parent
0944bd2077
commit
4a32c7641c
18 changed files with 101 additions and 32 deletions
|
@ -116,6 +116,10 @@ describe Contact do
|
|||
@contact.valid?
|
||||
@contact.errors[:email].should == ['Email is invalid']
|
||||
end
|
||||
|
||||
it 'should have ident updated because the logic itself is dedicated for legacy contacts ' do
|
||||
@contact.ident_updated_at.should_not == nil
|
||||
end
|
||||
end
|
||||
|
||||
context 'with valid attributes' do
|
||||
|
@ -234,6 +238,18 @@ describe Contact do
|
|||
contact.status_notes['someotherstatus'].should == nil
|
||||
end
|
||||
|
||||
it 'should have ident already updated because the logic itself is only for legacy contacts' do
|
||||
@contact.ident_updated_at.should_not == nil
|
||||
end
|
||||
|
||||
it 'should have not update ident updated at when initializing old contact' do
|
||||
# creating a legacy contact
|
||||
contact = Fabricate(:contact)
|
||||
contact.update_column(:ident_updated_at, nil)
|
||||
|
||||
Contact.find(contact.id).ident_updated_at.should == nil
|
||||
end
|
||||
|
||||
context 'as birthday' do
|
||||
before do
|
||||
@domain = Fabricate(:domain)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue