api.description project.description
api.parent(:id => project.parent.id, :name => project.parent.name) if project.parent && project.parent.visible?
api.status project.status
+ api.is_public project.is_public?
render_api_custom_values project.visible_custom_field_values, api
api.homepage @project.homepage
api.parent(:id => @project.parent.id, :name => @project.parent.name) if @project.parent && @project.parent.visible?
api.status @project.status
+ api.is_public @project.is_public?
render_api_custom_values @project.visible_custom_field_values, api
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
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'