Project

General

Profile

Feature #39113 ยป missing_attribute.diff

Vincent Robert, 2023-09-25 17:18

View differences:

app/views/projects/index.api.rsb
api.name project.name
api.identifier project.identifier
api.description project.description
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?
test/integration/api_test/projects_test.rb
assert_select '>status', :text => '1'
assert_select '>is_public', :text => 'true'
assert_select '>inherit_members', :text => 'true'
assert_select '>homepage', :text => 'http://ecookbook.somenet.foo/'
end
end
......
assert_kind_of Hash, json['projects'].first
assert json['projects'].first.has_key?('id')
assert json['projects'].first.has_key?('inherit_members')
assert json['projects'].first.has_key?('homepage')
end
test "GET /projects.xml with include=issue_categories should return categories" do
......
assert_select 'project>status', :text => '1'
assert_select 'project>is_public', :text => 'true'
assert_select 'project>inherit_members', :text => 'true'
assert_select 'project>homepage', :text => 'http://ecookbook.somenet.foo/'
assert_select 'custom_field[name="Development status"]', :text => 'Stable'
assert_select 'trackers', 0
......
assert_equal false, json['project']['inherit_members']
assert_equal false, json['project'].has_key?('default_version')
assert_equal false, json['project'].has_key?('default_assignee')
assert_equal 'http://ecookbook.somenet.foo/', json['project']['homepage']
end
test "GET /projects/:id.xml with hidden custom fields should not display hidden custom fields" do
    (1-1/1)