From bf95f982273bb215b486f256b8e79e0369ca85a7 Mon Sep 17 00:00:00 2001 From: Muhsin Keloth Date: Wed, 24 Jul 2024 15:18:49 +0530 Subject: [PATCH] chore: code cleanups --- spec/listeners/notification_listener_spec.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec/listeners/notification_listener_spec.rb b/spec/listeners/notification_listener_spec.rb index 4f2746fe7..a3a484c62 100644 --- a/spec/listeners/notification_listener_spec.rb +++ b/spec/listeners/notification_listener_spec.rb @@ -187,7 +187,7 @@ describe NotificationListener do event = Events::Base.new(event_name, Time.zone.now, conversation: conversation) listener.assignee_changed(event) - expect(notification_setting.user.notifications.count).to eq(0) + expect(user.notifications.count).to eq(0) end it 'does not create notification when assignee is nil' do