summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2016-10-02 10:21:02 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2016-10-02 10:21:02 +0000
commit87e36462d61ac14330b3a49ac1c6d49e577970a0 (patch)
tree4a81e6e631ed78bf9c98bfad42ee079e5f17aa1e /test
parent98327ab4a4e071f7260ff7d951d9c2d48bf16b1e (diff)
downloadredmine-87e36462d61ac14330b3a49ac1c6d49e577970a0.tar.gz
redmine-87e36462d61ac14330b3a49ac1c6d49e577970a0.zip
Merged r15855 (#23766).
git-svn-id: http://svn.redmine.org/redmine/branches/3.3-stable@15875 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test')
-rw-r--r--test/integration/api_test/issues_test.rb10
1 files changed, 10 insertions, 0 deletions
diff --git a/test/integration/api_test/issues_test.rb b/test/integration/api_test/issues_test.rb
index b1e189181..c21d2ccb9 100644
--- a/test/integration/api_test/issues_test.rb
+++ b/test/integration/api_test/issues_test.rb
@@ -491,6 +491,16 @@ JSON
assert_equal 'API test', issue.subject
end
+ test "POST /issues.json should accept project identifier as project_id" do
+ assert_difference('Issue.count') do
+ post '/issues.json',
+ {:issue => {:project_id => 'subproject1', :tracker_id => 2, :subject => 'Foo'}},
+ credentials('jsmith')
+
+ assert_response :created
+ end
+ end
+
test "POST /issues.json without tracker_id should accept custom fields" do
field = IssueCustomField.generate!(
:field_format => 'list',