瀏覽代碼

Adds a test for #19270.

git-svn-id: http://svn.redmine.org/redmine/trunk@14046 e93f8b46-1217-0410-a6f0-8f06a7374b81
tags/3.1.0
Jean-Philippe Lang 9 年之前
父節點
當前提交
95e5902b4c
共有 1 個檔案被更改,包括 11 行新增0 行删除
  1. 11
    0
      test/integration/api_test/issues_test.rb

+ 11
- 0
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')


Loading…
取消
儲存