mirror of
https://github.com/discourse/discourse.git
synced 2026-07-29 15:54:48 -05:00
FIX: popular posts in digest need to use same restrictions as topics
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user