Commit e3e8b9fc authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets

fixed tests

parent bfebf108
...@@ -31,14 +31,14 @@ describe NotificationService do ...@@ -31,14 +31,14 @@ describe NotificationService do
describe :reassigned_issue do describe :reassigned_issue do
it 'should sent email to issue old assignee and new issue assignee' do it 'should sent email to issue old assignee and new issue assignee' do
Notify.should_receive(:reassigned_issue_email).twice Notify.should_receive(:reassigned_issue_email)
notification.reassigned_issue(issue, issue.author) notification.reassigned_issue(issue, issue.author)
end end
end end
describe :close_issue do describe :close_issue do
it 'should sent email to issue assignee and issue author' do it 'should sent email to issue assignee and issue author' do
Notify.should_receive(:issue_status_changed_email).twice Notify.should_receive(:issue_status_changed_email)
notification.close_issue(issue, issue.author) notification.close_issue(issue, issue.author)
end end
end end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment