summaryrefslogtreecommitdiffstats
path: root/test/integration
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2015-03-07 07:31:01 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2015-03-07 07:31:01 +0000
commit95e5902b4ce798807bc3122b468d9d3dea230d97 (patch)
tree07b718e3d2c839e2995c788e417414aa410e6458 /test/integration
parent8667505e23b99d5ed025f9f26d87f41eb4c64aa0 (diff)
downloadredmine-95e5902b4ce798807bc3122b468d9d3dea230d97.tar.gz
redmine-95e5902b4ce798807bc3122b468d9d3dea230d97.zip
Adds a test for #19270.
git-svn-id: http://svn.redmine.org/redmine/trunk@14046 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/integration')
-rw-r--r--test/integration/api_test/issues_test.rb11
1 files changed, 11 insertions, 0 deletions
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')