Project

General

Profile

Feature #39113 ยป missing_attribute.diff

Vincent Robert, 2023-09-25 17:18

View differences:

app/views/projects/index.api.rsb
5 5
      api.name        project.name
6 6
      api.identifier  project.identifier
7 7
      api.description project.description
8
      api.homepage    project.homepage
8 9
      api.parent(:id => project.parent.id, :name => project.parent.name) if project.parent && project.parent.visible?
9 10
      api.status      project.status
10 11
      api.is_public   project.is_public?
test/integration/api_test/projects_test.rb
43 43
      assert_select '>status', :text => '1'
44 44
      assert_select '>is_public', :text => 'true'
45 45
      assert_select '>inherit_members', :text => 'true'
46
      assert_select '>homepage', :text => 'http://ecookbook.somenet.foo/'
46 47
    end
47 48
  end
48 49

  
......
57 58
    assert_kind_of Hash, json['projects'].first
58 59
    assert json['projects'].first.has_key?('id')
59 60
    assert json['projects'].first.has_key?('inherit_members')
61
    assert json['projects'].first.has_key?('homepage')
60 62
  end
61 63

  
62 64
  test "GET /projects.xml with include=issue_categories should return categories" do
......
102 104
    assert_select 'project>status', :text => '1'
103 105
    assert_select 'project>is_public', :text => 'true'
104 106
    assert_select 'project>inherit_members', :text => 'true'
107
    assert_select 'project>homepage', :text => 'http://ecookbook.somenet.foo/'
105 108
    assert_select 'custom_field[name="Development status"]', :text => 'Stable'
106 109

  
107 110
    assert_select 'trackers', 0
......
118 121
    assert_equal false, json['project']['inherit_members']
119 122
    assert_equal false, json['project'].has_key?('default_version')
120 123
    assert_equal false, json['project'].has_key?('default_assignee')
124
    assert_equal 'http://ecookbook.somenet.foo/', json['project']['homepage']
121 125
  end
122 126

  
123 127
  test "GET /projects/:id.xml with hidden custom fields should not display hidden custom fields" do
    (1-1/1)