Break down new topic counts by category if a digest contains many.

This commit is contained in:
Robin Ward
2014-04-17 16:42:40 -04:00
parent 0e56157212
commit 64faee0935
7 changed files with 57 additions and 16 deletions

View File

@@ -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] }