Fix notification spec

This commit is contained in:
Douwe Maan 2016-01-05 18:17:55 +01:00
parent 8de1f7159c
commit b541446389

View file

@ -53,7 +53,7 @@ describe NotificationService, services: true do
add_users_with_subscription(note.project, issue)
# Ensure create SentNotification by noteable = issue 6 times, not noteable = note
expect(SentNotification).to receive(:record).with(issue, any_args).exactly(6).times
expect(SentNotification).to receive(:record).with(issue, any_args).exactly(7).times
ActionMailer::Base.deliveries.clear