diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2015-11-01 08:56:27 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2015-11-01 08:56:27 +0000 |
commit | 0df7fa714b42fc8d5eece57689433b9f60c8d3d7 (patch) | |
tree | 42c4dec7992d1d703fee513ec329c11d519009af /test/unit/mail_handler_test.rb | |
parent | fb8e348254a24cc3facb238789f555aa70d9857b (diff) | |
download | redmine-0df7fa714b42fc8d5eece57689433b9f60c8d3d7.tar.gz redmine-0df7fa714b42fc8d5eece57689433b9f60c8d3d7.zip |
Allow a default version to be set on the command line for incoming emails (#7346).
git-svn-id: http://svn.redmine.org/redmine/trunk@14789 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/unit/mail_handler_test.rb')
-rw-r--r-- | test/unit/mail_handler_test.rb | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/test/unit/mail_handler_test.rb b/test/unit/mail_handler_test.rb index 1ec35adce..e2522db26 100644 --- a/test/unit/mail_handler_test.rb +++ b/test/unit/mail_handler_test.rb @@ -129,6 +129,17 @@ class MailHandlerTest < ActiveSupport::TestCase assert_equal 'Support request', issue.tracker.name end + def test_add_issue_with_default_version + # This email contains: 'Project: onlinestore' + issue = submit_email( + 'ticket_on_given_project.eml', + :issue => {:fixed_version => 'Alpha'} + ) + assert issue.is_a?(Issue) + assert !issue.new_record? + assert_equal 'Alpha', issue.reload.fixed_version.name + 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']) |