diff options
author | Go MAEDA <maeda@farend.jp> | 2023-10-15 02:18:26 +0000 |
---|---|---|
committer | Go MAEDA <maeda@farend.jp> | 2023-10-15 02:18:26 +0000 |
commit | 28a45b7144b6c250d060eecccfec14d41585bd27 (patch) | |
tree | f116275671c3229eb6c14774f37f0c32e105eb19 /test/integration/api_test/projects_test.rb | |
parent | 11c4fd7990d525773aa04130b44af53f4380e100 (diff) | |
download | redmine-28a45b7144b6c250d060eecccfec14d41585bd27.tar.gz redmine-28a45b7144b6c250d060eecccfec14d41585bd27.zip |
Add missing Homepage attribute in Projects API response (#39113).
Patch by Vincent Robert.
git-svn-id: https://svn.redmine.org/redmine/trunk@22345 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/integration/api_test/projects_test.rb')
-rw-r--r-- | test/integration/api_test/projects_test.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/test/integration/api_test/projects_test.rb b/test/integration/api_test/projects_test.rb index c32f7679b..fbe0d1cbe 100644 --- a/test/integration/api_test/projects_test.rb +++ b/test/integration/api_test/projects_test.rb @@ -45,6 +45,7 @@ class Redmine::ApiTest::ProjectsTest < Redmine::ApiTest::Base 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 @@ -59,6 +60,7 @@ class Redmine::ApiTest::ProjectsTest < Redmine::ApiTest::Base 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 @@ -109,6 +111,7 @@ class Redmine::ApiTest::ProjectsTest < Redmine::ApiTest::Base 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 @@ -125,6 +128,7 @@ class Redmine::ApiTest::ProjectsTest < Redmine::ApiTest::Base 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 |