diff options
Diffstat (limited to 'test/unit')
-rw-r--r-- | test/unit/mailer_test.rb | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/test/unit/mailer_test.rb b/test/unit/mailer_test.rb index 18a045713..8ac1c5a80 100644 --- a/test/unit/mailer_test.rb +++ b/test/unit/mailer_test.rb @@ -476,9 +476,10 @@ class MailerTest < ActiveSupport::TestCase def test_reminders_should_not_include_closed_issues with_settings :default_language => 'en' do - Issue.generate!(:project_id => 1, :tracker_id => 1, :status_id => 5, + Issue.create!(:project_id => 1, :tracker_id => 1, :status_id => 5, :subject => 'Closed issue', :assigned_to_id => 3, - :due_date => 5.days.from_now) + :due_date => 5.days.from_now, + :author_id => 2) ActionMailer::Base.deliveries.clear Mailer.reminders(:days => 42) |