| 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
|