FIX: popular posts in digest need to use same restrictions as topics

This commit is contained in:
Neil Lalonde
2016-11-23 11:24:18 -05:00
parent 91c21dad28
commit 79dc0518c9
2 changed files with 4 additions and 4 deletions
+2 -2
View File
@@ -155,8 +155,8 @@ describe UserNotifications do
context "with new topics" do
before do
Topic.expects(:for_digest).returns([Fabricate(:topic, user: Fabricate(:coding_horror))])
Topic.expects(:new_since_last_seen).returns(Topic.none)
Topic.stubs(:for_digest).returns([Fabricate(:topic, user: Fabricate(:coding_horror))])
Topic.stubs(:new_since_last_seen).returns(Topic.none)
end
it "works" do