Browse Source

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

git-svn-id: https://svn.redmine.org/redmine/trunk@22705 e93f8b46-1217-0410-a6f0-8f06a7374b81
pull/149/head
Marius Balteanu 2 months ago
parent
commit
437e46aa45
2 changed files with 2 additions and 2 deletions
  1. 1
    1
      app/helpers/application_helper.rb
  2. 1
    1
      test/integration/lib/redmine/themes_test.rb

+ 1
- 1
app/helpers/application_helper.rb View File

@@ -1749,7 +1749,7 @@ module ApplicationHelper
end

def favicon
favicon_link_tag(favicon_path, rel: "icon shortcut")
favicon_link_tag(favicon_path, rel: "shortcut icon")
end

# Returns the path to the favicon

+ 1
- 1
test/integration/lib/redmine/themes_test.rb View File

@@ -63,7 +63,7 @@ class ThemesTest < Redmine::IntegrationTest
get '/'

assert_response :success
assert_select 'link[rel="shortcut icon"][href^="/favicon.ico"]'
assert_select "link[rel='shortcut icon']:match('href',?)", %r{/assets/favicon-\w+\.ico}
end

def test_use_theme_favicon_if_theme_provides_one

Loading…
Cancel
Save