mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
Break down new topic counts by category if a digest contains many.
This commit is contained in:
@@ -52,6 +52,7 @@ 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)
|
||||
end
|
||||
|
||||
its(:to) { should == [user.email] }
|
||||
|
||||
Reference in New Issue
Block a user