diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2012-03-04 12:15:57 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2012-03-04 12:15:57 +0000 |
commit | 7dbc3e4774f2c405a7f2784c93160066a6c88303 (patch) | |
tree | 37a43187301d3df59253ad67f2b029aa17610581 /test/unit/mailer_test.rb | |
parent | bcd8c643844f14eabdb751aae4cdc050b3dcc4f2 (diff) | |
download | redmine-7dbc3e4774f2c405a7f2784c93160066a6c88303.tar.gz redmine-7dbc3e4774f2c405a7f2784c93160066a6c88303.zip |
Removed some generate! calls.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9078 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/unit/mailer_test.rb')
-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) |