summaryrefslogtreecommitdiffstats
path: root/test/integration/api_test/issues_test.rb
diff options
context:
space:
mode:
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>2017-08-28 04:15:55 +0000
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>2017-08-28 04:15:55 +0000
commit7cb8ce8e40ba4e1a3ee1a78914daa4cd2a2a8f60 (patch)
tree11eac483449b3bf4405bb4db565c804423b27238 /test/integration/api_test/issues_test.rb
parent432cf42b4727d100e7aa0cde75584d4a8198aafa (diff)
downloadredmine-7cb8ce8e40ba4e1a3ee1a78914daa4cd2a2a8f60.tar.gz
redmine-7cb8ce8e40ba4e1a3ee1a78914daa4cd2a2a8f60.zip
add category_id to REST issue creation tests (#26769)
git-svn-id: http://svn.redmine.org/redmine/trunk@16953 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/integration/api_test/issues_test.rb')
-rw-r--r--test/integration/api_test/issues_test.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/integration/api_test/issues_test.rb b/test/integration/api_test/issues_test.rb
index 142b473af..cc3826a65 100644
--- a/test/integration/api_test/issues_test.rb
+++ b/test/integration/api_test/issues_test.rb
@@ -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