mirror of
https://github.com/meineerde/redmine.git
synced 2025-12-19 15:01:14 +00:00
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
This commit is contained in:
parent
ce605ea31d
commit
a99564ccd2
@ -26,8 +26,21 @@ class FeedsTest < Redmine::IntegrationTest
|
|||||||
:roles, :member_roles, :members
|
:roles, :member_roles, :members
|
||||||
|
|
||||||
def test_feeds_should_include_icon_tag
|
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_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
|
||||||
end
|
end
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user