Add project is_public to GET /projects/:id and /projects API response (#17628).

Contributed by Michael Esemplare <michael.esemplare@gmail.com>



git-svn-id: http://svn.redmine.org/redmine/trunk@13339 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Baptiste Barth
2014-08-15 09:57:00 +00:00
parent 2f6070bb2b
commit 772418461f
3 changed files with 4 additions and 0 deletions

View File

@@ -51,6 +51,7 @@ class Redmine::ApiTest::ProjectsTest < Redmine::ApiTest::Base
assert_select 'projects>project>id', :text => '1'
assert_select 'projects>project>status', :text => '1'
assert_select 'projects>project>is_public', :text => 'true'
end
test "GET /projects.json should return projects" do
@@ -72,6 +73,7 @@ class Redmine::ApiTest::ProjectsTest < Redmine::ApiTest::Base
assert_select 'project>id', :text => '1'
assert_select 'project>status', :text => '1'
assert_select 'project>is_public', :text => 'true'
assert_select 'custom_field[name=Development status]', :text => 'Stable'
assert_no_tag 'trackers'