From 11ef0fb694f096785ce8e2bc75f517d1c17dc95c Mon Sep 17 00:00:00 2001 From: Brenda Wallace Date: Sun, 11 Aug 2019 16:31:51 +1200 Subject: [PATCH] Removed test for unused method --- spec/models/notification_spec.rb | 6 ------ 1 file changed, 6 deletions(-) diff --git a/spec/models/notification_spec.rb b/spec/models/notification_spec.rb index 5c9dc4883..2a4c7e86a 100644 --- a/spec/models/notification_spec.rb +++ b/spec/models/notification_spec.rb @@ -24,12 +24,6 @@ describe Notification do expect(Notification.unread).to include notification end - it "counts unread" do - @who = notification.recipient - @n2 = FactoryBot.create(:notification, recipient: @who, read: false) - expect(@who.notifications.unread_count).to eq 2 - end - it "sends email if asked" do @notification2 = FactoryBot.create(:notification) @notification2.send_message