@@ -750,7 +750,10 class IssueTest < ActiveSupport::TestCase | |||||
750 |
|
750 | |||
751 | def test_create_should_send_email_notification |
|
751 | def test_create_should_send_email_notification | |
752 | ActionMailer::Base.deliveries.clear |
|
752 | ActionMailer::Base.deliveries.clear | |
753 | issue = Issue.new(:project_id => 1, :tracker_id => 1, :author_id => 3, :status_id => 1, :priority => IssuePriority.all.first, :subject => 'test_create', :estimated_hours => '1:30') |
|
753 | issue = Issue.new(:project_id => 1, :tracker_id => 1, | |
|
754 | :author_id => 3, :status_id => 1, | |||
|
755 | :priority => IssuePriority.all.first, | |||
|
756 | :subject => 'test_create', :estimated_hours => '1:30') | |||
754 |
|
757 | |||
755 | assert issue.save |
|
758 | assert issue.save | |
756 | assert_equal 1, ActionMailer::Base.deliveries.size |
|
759 | assert_equal 1, ActionMailer::Base.deliveries.size |
General Comments 0
You need to be logged in to leave comments.
Login now