mirror of
https://github.com/redmine/redmine.git
synced 2025-11-14 01:06:00 +01:00
Adds a test for #19270.
git-svn-id: http://svn.redmine.org/redmine/trunk@14046 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
@@ -467,6 +467,17 @@ JSON
|
|||||||
assert_equal 'Project changed', issue.subject
|
assert_equal 'Project changed', issue.subject
|
||||||
end
|
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
|
test "PUT /issues/:id.xml with failed update" do
|
||||||
put '/issues/6.xml', {:issue => {:subject => ''}}, credentials('jsmith')
|
put '/issues/6.xml', {:issue => {:subject => ''}}, credentials('jsmith')
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user