mirror of
https://github.com/redmine/redmine.git
synced 2025-11-05 04:45:57 +01:00
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
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user