Browse Source

Fix failing tests related to favicon after r22692 (#39111).

git-svn-id: https://svn.redmine.org/redmine/trunk@22704 e93f8b46-1217-0410-a6f0-8f06a7374b81
pull/149/head
Marius Balteanu 3 months ago
parent
commit
d896a2d546
1 changed files with 4 additions and 4 deletions
  1. 4
    4
      test/helpers/application_helper_test.rb

+ 4
- 4
test/helpers/application_helper_test.rb View File

end end


def test_favicon_path def test_favicon_path
assert_match %r{^/favicon\.ico}, favicon_path
assert_match %r{^/assets/favicon-\w+\.ico}, favicon_path
end end


def test_favicon_path_with_suburi def test_favicon_path_with_suburi
Redmine::Utils.relative_url_root = '/foo' Redmine::Utils.relative_url_root = '/foo'
assert_match %r{^/foo/favicon\.ico}, favicon_path
assert_match %r{^/foo/assets/favicon-\w+\.ico}, favicon_path
ensure ensure
Redmine::Utils.relative_url_root = '' Redmine::Utils.relative_url_root = ''
end end


def test_favicon_url def test_favicon_url
assert_match %r{^http://test\.host/favicon\.ico}, favicon_url
assert_match %r{^http://test\.host/assets/favicon-\w+\.ico}, favicon_url
end end


def test_favicon_url_with_suburi def test_favicon_url_with_suburi
Redmine::Utils.relative_url_root = '/foo' Redmine::Utils.relative_url_root = '/foo'
assert_match %r{^http://test\.host/foo/favicon\.ico}, favicon_url
assert_match %r{^http://test\.host/foo/assets/favicon-\w+\.ico}, favicon_url
ensure ensure
Redmine::Utils.relative_url_root = '' Redmine::Utils.relative_url_root = ''
end end

Loading…
Cancel
Save