FIX: don't send empty email notifications for small_actions

This commit is contained in:
Régis Hanol
2016-02-01 19:12:10 +01:00
parent 8608b5cbc1
commit 12051f79a8
6 changed files with 31 additions and 19 deletions

View File

@ -85,6 +85,7 @@ describe Notification do
end
end
describe 'unread counts' do
let(:user) { Fabricate(:user) }
@ -171,7 +172,6 @@ describe Notification do
Fabricate(:post, topic: @topic, user: @topic.user)
@target.reload
expect(@target.unread_private_messages).to eq(1)
end
end