]> source.dussan.org Git - redmine.git/commitdiff
Adds a test for #19270.
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Sat, 7 Mar 2015 07:31:01 +0000 (07:31 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Sat, 7 Mar 2015 07:31:01 +0000 (07:31 +0000)
git-svn-id: http://svn.redmine.org/redmine/trunk@14046 e93f8b46-1217-0410-a6f0-8f06a7374b81

test/integration/api_test/issues_test.rb

index b71b268b847c78eacdea0c73cbbdce389e758a61..89550f1cf83d9dce74bd9e136f136cb8e7d8cff9 100644 (file)
@@ -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')