diff --git a/spec/models/contact_inbox_spec.rb b/spec/models/contact_inbox_spec.rb index e63dede76..b19d58934 100644 --- a/spec/models/contact_inbox_spec.rb +++ b/spec/models/contact_inbox_spec.rb @@ -28,7 +28,7 @@ RSpec.describe ContactInbox do obj.reload # ensure the column is nil in database - expect(ContactInbox.where(id: obj.id).pick(:pubsub_token)).to be_nil + expect(described_class.where(id: obj.id).pick(:pubsub_token)).to be_nil new_token = obj.pubsub_token obj.update(source_id: '234234323')