diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2016-10-01 09:06:17 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2016-10-01 09:06:17 +0000 |
commit | d478785aeacd65e40570b1cd4513864efa5fbac4 (patch) | |
tree | 3156328304f6145593885a21f4d924b323bfb8cd /test/integration | |
parent | 84ab16dcfe2866adedef428bbcc8e68bfb8efc20 (diff) | |
download | redmine-d478785aeacd65e40570b1cd4513864efa5fbac4.tar.gz redmine-d478785aeacd65e40570b1cd4513864efa5fbac4.zip |
Let the API accept project identifier for creating issues (#23766).
Patch by Holger Just.
git-svn-id: http://svn.redmine.org/redmine/trunk@15855 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/integration')
-rw-r--r-- | test/integration/api_test/issues_test.rb | 10 |
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 50119f4d1..077ae9601 100644 --- a/test/integration/api_test/issues_test.rb +++ b/test/integration/api_test/issues_test.rb @@ -488,6 +488,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', |