summaryrefslogtreecommitdiffstats
path: root/test/integration/feeds_test.rb
diff options
context:
space:
mode:
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>2020-11-19 13:31:25 +0000
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>2020-11-19 13:31:25 +0000
commita99564ccd2f7139440d7df7f6dcf0744332a64cc (patch)
tree3d842577e71fed49cbcc0441430786a6e5aa123a /test/integration/feeds_test.rb
parentce605ea31d02dffcee06a617ce0e775c6e71a0ea (diff)
downloadredmine-a99564ccd2f7139440d7df7f6dcf0744332a64cc.tar.gz
redmine-a99564ccd2f7139440d7df7f6dcf0744332a64cc.zip
add more assert_select to FeedsTest#test_feeds_should_include_icon_tag
git-svn-id: http://svn.redmine.org/redmine/trunk@20440 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/integration/feeds_test.rb')
-rw-r--r--test/integration/feeds_test.rb17
1 files changed, 15 insertions, 2 deletions
diff --git a/test/integration/feeds_test.rb b/test/integration/feeds_test.rb
index 178cff641..b99d24bde 100644
--- a/test/integration/feeds_test.rb
+++ b/test/integration/feeds_test.rb
@@ -26,8 +26,21 @@ class FeedsTest < Redmine::IntegrationTest
:roles, :member_roles, :members
def test_feeds_should_include_icon_tag
- get '/projects.atom'
+ host_name = 'feeds_test'
+
+ with_settings :host_name => host_name do
+ get '/projects.atom'
+ end
assert_response :success
- assert_select 'feed>icon', :text => %r{^http://www.example.com/favicon.ico}
+
+ assert_select 'feed' do
+ assert_select 'title'
+ assert_select 'link[rel=?][href=?]', 'self', "http://#{host_name}/projects.atom"
+ assert_select 'link[rel=?][href=?]', 'alternate', "http://#{host_name}/projects"
+ assert_select 'id', :text => 'http://www.example.com/'
+ assert_select 'icon', :text => %r{^http://www.example.com/favicon.ico}
+ assert_select 'updated'
+ assert_select 'generator', :text => 'Redmine'
+ end
end
end