mirror of
https://github.com/redmine/redmine.git
synced 2025-11-10 15:26:03 +01:00
Merged r15855 (#23766).
git-svn-id: http://svn.redmine.org/redmine/branches/3.3-stable@15875 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user