summaryrefslogtreecommitdiffstats
path: root/test/unit
diff options
context:
space:
mode:
Diffstat (limited to 'test/unit')
-rw-r--r--test/unit/mail_handler_test.rb11
1 files changed, 11 insertions, 0 deletions
diff --git a/test/unit/mail_handler_test.rb b/test/unit/mail_handler_test.rb
index f08f2a6cd..07d579a5d 100644
--- a/test/unit/mail_handler_test.rb
+++ b/test/unit/mail_handler_test.rb
@@ -140,6 +140,17 @@ class MailHandlerTest < ActiveSupport::TestCase
assert_equal 'Alpha', issue.reload.fixed_version.name
end
+ def test_add_issue_with_default_assigned_to
+ # This email contains: 'Project: onlinestore'
+ issue = submit_email(
+ 'ticket_on_given_project.eml',
+ :issue => {:assigned_to => 'jsmith'}
+ )
+ assert issue.is_a?(Issue)
+ assert !issue.new_record?
+ assert_equal 'jsmith', issue.reload.assigned_to.login
+ end
+
def test_add_issue_with_status_override
# This email contains: 'Project: onlinestore' and 'Status: Resolved'
issue = submit_email('ticket_on_given_project.eml', :allow_override => ['status'])