Commit b9800000255b4522b79aeb2d879b08685fa2c018
Exists in
staging
and in
42 other branches
Merge branch 'fix_task_mailer_tests' into 'master'
Fix task mailer tests See merge request !372
Showing
1 changed file
with
3 additions
and
3 deletions
Show diff stats
test/unit/task_mailer_test.rb
| ... | ... | @@ -18,7 +18,7 @@ class TaskMailerTest < ActiveSupport::TestCase |
| 18 | 18 | task.expects(:target_notification_description).returns('the task') |
| 19 | 19 | |
| 20 | 20 | requestor = mock() |
| 21 | - requestor.expects(:notification_emails).returns(['requestor@example.com']) | |
| 21 | + requestor.expects(:notification_emails).returns(['requestor@example.com']).at_least_once | |
| 22 | 22 | requestor.expects(:name).returns('my name') |
| 23 | 23 | |
| 24 | 24 | environment = mock() |
| ... | ... | @@ -41,7 +41,7 @@ class TaskMailerTest < ActiveSupport::TestCase |
| 41 | 41 | task.expects(:target_notification_description).returns('the task') |
| 42 | 42 | |
| 43 | 43 | requestor = mock() |
| 44 | - requestor.expects(:notification_emails).returns(['requestor@example.com']) | |
| 44 | + requestor.expects(:notification_emails).returns(['requestor@example.com']).at_least_once | |
| 45 | 45 | requestor.expects(:name).returns('my name') |
| 46 | 46 | |
| 47 | 47 | environment = mock() |
| ... | ... | @@ -65,7 +65,7 @@ class TaskMailerTest < ActiveSupport::TestCase |
| 65 | 65 | task.expects(:target_notification_description).returns('the task') |
| 66 | 66 | |
| 67 | 67 | requestor = mock() |
| 68 | - requestor.expects(:notification_emails).returns(['requestor@example.com']) | |
| 68 | + requestor.expects(:notification_emails).returns(['requestor@example.com']).at_least_once | |
| 69 | 69 | requestor.expects(:name).returns('my name') |
| 70 | 70 | |
| 71 | 71 | environment = mock() | ... | ... |