Browse Source

code layout clean up of test_create_should_send_email_notification at test/unit/issue_test.rb

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@7479 e93f8b46-1217-0410-a6f0-8f06a7374b81
tags/1.3.0
Toshi MARUYAMA 12 years ago
parent
commit
06452ae8cf
1 changed files with 4 additions and 1 deletions
  1. 4
    1
      test/unit/issue_test.rb

+ 4
- 1
test/unit/issue_test.rb View File

@@ -750,7 +750,10 @@ class IssueTest < ActiveSupport::TestCase

def test_create_should_send_email_notification
ActionMailer::Base.deliveries.clear
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')
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')

assert issue.save
assert_equal 1, ActionMailer::Base.deliveries.size

Loading…
Cancel
Save