mirror of
https://github.com/redmine/redmine.git
synced 2025-11-01 02:46:13 +01:00
Revert r19810 (#10535).
git-svn-id: http://svn.redmine.org/redmine/trunk@20685 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
@@ -1140,22 +1140,20 @@ class IssuesControllerTest < Redmine::ControllerTest
|
||||
end
|
||||
|
||||
def test_index_atom
|
||||
with_settings :protocol => 'https', :host_name => 'example.net' do
|
||||
get(
|
||||
:index,
|
||||
:params => {
|
||||
:project_id => 'ecookbook',
|
||||
:format => 'atom'
|
||||
}
|
||||
)
|
||||
end
|
||||
get(
|
||||
:index,
|
||||
:params => {
|
||||
:project_id => 'ecookbook',
|
||||
:format => 'atom'
|
||||
}
|
||||
)
|
||||
assert_response :success
|
||||
assert_equal 'application/atom+xml', response.media_type
|
||||
|
||||
assert_select 'feed' do
|
||||
assert_select 'link[rel=self][href=?]', 'https://example.net/projects/ecookbook/issues.atom'
|
||||
assert_select 'link[rel=alternate][href=?]', 'https://example.net/projects/ecookbook/issues'
|
||||
assert_select 'entry link[href=?]', 'https://example.net/issues/1'
|
||||
assert_select 'link[rel=self][href=?]', 'http://test.host/projects/ecookbook/issues.atom'
|
||||
assert_select 'link[rel=alternate][href=?]', 'http://test.host/projects/ecookbook/issues'
|
||||
assert_select 'entry link[href=?]', 'http://test.host/issues/1'
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user