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 ...@@ -492,6 +492,7 @@ payload = <<-XML
<tracker_id>2</tracker_id> <tracker_id>2</tracker_id>
<status_id>3</status_id> <status_id>3</status_id>
<subject>API test</subject> <subject>API test</subject>
<category_id>2</category_id>
</issue> </issue>
XML XML
...@@ -504,6 +505,7 @@ XML ...@@ -504,6 +505,7 @@ XML
assert_equal 1, issue.project_id assert_equal 1, issue.project_id
assert_equal 2, issue.tracker_id assert_equal 2, issue.tracker_id
assert_equal 3, issue.status_id assert_equal 3, issue.status_id
assert_equal 2, issue.category_id
assert_equal 'API test', issue.subject assert_equal 'API test', issue.subject
assert_response :created assert_response :created
...@@ -546,6 +548,7 @@ payload = <<-JSON ...@@ -546,6 +548,7 @@ payload = <<-JSON
"project_id": "1", "project_id": "1",
"tracker_id": "2", "tracker_id": "2",
"status_id": "3", "status_id": "3",
"category_id": "2",
"subject": "API test" "subject": "API test"
} }
} }
...@@ -561,6 +564,7 @@ JSON ...@@ -561,6 +564,7 @@ JSON
assert_equal 1, issue.project_id assert_equal 1, issue.project_id
assert_equal 2, issue.tracker_id assert_equal 2, issue.tracker_id
assert_equal 3, issue.status_id assert_equal 3, issue.status_id
assert_equal 2, issue.category_id
assert_equal 'API test', issue.subject assert_equal 'API test', issue.subject
end 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