summaryrefslogtreecommitdiffstats
path: root/test/unit
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2010-12-29 17:38:57 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2010-12-29 17:38:57 +0000
commit03d4ecbbff99492cf96695a87d39ce20c0692a4f (patch)
tree7310b8da7dfb138e0a1b36eb8262acde82d9ff3f /test/unit
parent21c0b868ae1d7836dcfe34ac0ad740df981e304d (diff)
downloadredmine-03d4ecbbff99492cf96695a87d39ce20c0692a4f.tar.gz
redmine-03d4ecbbff99492cf96695a87d39ce20c0692a4f.zip
Fixed: CLI-supplied defaults should not be applied when replying to an issue (#7195).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4576 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/unit')
-rw-r--r--test/unit/mail_handler_test.rb8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/unit/mail_handler_test.rb b/test/unit/mail_handler_test.rb
index df22bddc8..a9f7b77da 100644
--- a/test/unit/mail_handler_test.rb
+++ b/test/unit/mail_handler_test.rb
@@ -327,6 +327,14 @@ class MailHandlerTest < ActiveSupport::TestCase
assert_equal 1, ActionMailer::Base.deliveries.size
end
+ def test_add_issue_note_should_not_set_defaults
+ journal = submit_email('ticket_reply.eml', :issue => {:tracker => 'Support request', :priority => 'High'})
+ assert journal.is_a?(Journal)
+ assert_match /This is reply/, journal.notes
+ assert_equal 'Feature request', journal.issue.tracker.name
+ assert_equal 'Normal', journal.issue.priority.name
+ end
+
def test_reply_to_a_message
m = submit_email('message_reply.eml')
assert m.is_a?(Message)