summaryrefslogtreecommitdiffstats
path: root/test/integration
diff options
context:
space:
mode:
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')