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

@@ -185,7 +185,6 @@ describe Jobs::UserEmail do
expect(err.skipped_reason).to match(/notification.*already/)
end
it "does send the email if the notification has been seen but the user is set for email_always" do
Email::Sender.any_instance.expects(:send)
notification.update_column(:read, true)
@@ -275,6 +274,4 @@ describe Jobs::UserEmail do
end
end