diff --git a/spec/models/contact_spec.rb b/spec/models/contact_spec.rb index 2ca65fa4e..08a9f38c7 100644 --- a/spec/models/contact_spec.rb +++ b/spec/models/contact_spec.rb @@ -28,7 +28,7 @@ RSpec.describe Contact do it 'sets email to nil when empty string' do contact = create(:contact, email: '') expect(contact.email).to be_nil - expect(contact.contact_type).to eq('visitor') + expect(contact.contact_type).to eq('lead') end it 'sets custom_attributes to {} when nil' do @@ -87,9 +87,9 @@ RSpec.describe Contact do end context 'when a contact is created' do - it 'has contact type "visitor" by default' do + it 'has contact type "lead" by default' do contact = create(:contact) - expect(contact.contact_type).to eq 'visitor' + expect(contact.contact_type).to eq 'lead' end it 'has contact type "lead" when email is present' do diff --git a/spec/services/contacts/sync_attributes_spec.rb b/spec/services/contacts/sync_attributes_spec.rb index 447bcd740..a28fac789 100644 --- a/spec/services/contacts/sync_attributes_spec.rb +++ b/spec/services/contacts/sync_attributes_spec.rb @@ -9,7 +9,7 @@ RSpec.describe Contacts::SyncAttributes do context 'when contact has neither email/phone number nor social details' do it 'does not change contact type' do described_class.new(contact).perform - expect(contact.reload.contact_type).to eq('visitor') + expect(contact.reload.contact_type).to eq('lead') end end