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