mirror of
https://github.com/redmine/redmine.git
synced 2025-11-08 06:15:59 +01:00
add category_id to REST issue creation tests (#26769)
git-svn-id: http://svn.redmine.org/redmine/trunk@16953 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user