diff options
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']) |