Commit 0c6668aa authored by marutosijp's avatar marutosijp

add category_id to REST issue creation tests (#26769)

git-svn-id: https://svn.redmine.org/redmine/trunk@16953 e93f8b46-1217-0410-a6f0-8f06a7374b81
parent 8bf94922
......@@ -492,6 +492,7 @@ payload = <<-XML
<tracker_id>2</tracker_id>
<status_id>3</status_id>
<subject>API test</subject>
<category_id>2</category_id>
</issue>
XML
......@@ -504,6 +505,7 @@ XML
assert_equal 1, issue.project_id
assert_equal 2, issue.tracker_id
assert_equal 3, issue.status_id
assert_equal 2, issue.category_id
assert_equal 'API test', issue.subject
assert_response :created
......@@ -546,6 +548,7 @@ payload = <<-JSON
"project_id": "1",
"tracker_id": "2",
"status_id": "3",
"category_id": "2",
"subject": "API test"
}
}
......@@ -561,6 +564,7 @@ JSON
assert_equal 1, issue.project_id
assert_equal 2, issue.tracker_id
assert_equal 3, issue.status_id
assert_equal 2, issue.category_id
assert_equal 'API test', issue.subject
end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment