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