summaryrefslogtreecommitdiffstats
path: root/test/integration/api_test
diff options
context:
space:
mode:
Diffstat (limited to 'test/integration/api_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 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',