From 95e5902b4ce798807bc3122b468d9d3dea230d97 Mon Sep 17 00:00:00 2001 From: Jean-Philippe Lang Date: Sat, 7 Mar 2015 07:31:01 +0000 Subject: [PATCH] Adds a test for #19270. git-svn-id: http://svn.redmine.org/redmine/trunk@14046 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- test/integration/api_test/issues_test.rb | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/test/integration/api_test/issues_test.rb b/test/integration/api_test/issues_test.rb index b71b268b8..89550f1cf 100644 --- a/test/integration/api_test/issues_test.rb +++ b/test/integration/api_test/issues_test.rb @@ -467,6 +467,17 @@ JSON assert_equal 'Project changed', issue.subject end + test "PUT /issues/:id.xml with notes only" do + assert_difference('Journal.count') do + put '/issues/6.xml', + {:issue => {:notes => 'Notes only'}}, + credentials('jsmith') + end + + journal = Journal.last + assert_equal "Notes only", journal.notes + end + test "PUT /issues/:id.xml with failed update" do put '/issues/6.xml', {:issue => {:subject => ''}}, credentials('jsmith') -- 2.39.5