summaryrefslogtreecommitdiffstats
path: root/test/unit
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2016-06-18 07:07:41 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2016-06-18 07:07:41 +0000
commitffdcb22ccb785a1efad942c250267c181d84c7df (patch)
tree25bf72a6c084254ffd50b000c28f3ed2cc6be2d8 /test/unit
parent93afc01e06abadd1330851d2ddf1122640144d2c (diff)
downloadredmine-ffdcb22ccb785a1efad942c250267c181d84c7df.tar.gz
redmine-ffdcb22ccb785a1efad942c250267c181d84c7df.zip
Ability to define a default assigned_to when receiving emails (#23020).
git-svn-id: http://svn.redmine.org/redmine/trunk@15547 e93f8b46-1217-0410-a6f0-8f06a7374b81
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'])