mirror of
https://github.com/redmine/redmine.git
synced 2026-05-07 13:46:28 +02:00
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:
@@ -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'
|
||||
|
||||
Reference in New Issue
Block a user