Patch #31941 » 0001-ThemesTest-fails-if-a-third-party-theme-with-a-favic.patch
| test/integration/lib/redmine/themes_test.rb | ||
|---|---|---|
|
end
|
||
|
def test_use_default_favicon_if_theme_provides_none
|
||
|
@theme.favicons.clear
|
||
|
get '/'
|
||
|
assert_response :success
|
||
| ... | ... | |
|
def test_use_theme_favicon_if_theme_provides_one
|
||
|
# Simulate a theme favicon
|
||
|
@theme.favicons << 'a.ico'
|
||
|
@theme.favicons.unshift('a.ico')
|
||
|
get '/'
|
||
|
assert_response :success
|
||
| ... | ... | |
|
end
|
||
|
def test_use_only_one_theme_favicon_if_theme_provides_many
|
||
|
@theme.favicons.concat %w{b.ico a.png}
|
||
|
@theme.favicons.unshift('b.ico', 'a.png')
|
||
|
get '/'
|
||
|
assert_response :success
|
||
| ... | ... | |
|
def test_with_sub_uri
|
||
|
Redmine::Utils.relative_url_root = '/foo'
|
||
|
@theme.javascripts << 'theme'
|
||
|
@theme.favicons << 'a.ico'
|
||
|
@theme.javascripts.unshift('theme')
|
||
|
@theme.favicons.unshift('a.ico')
|
||
|
get '/'
|
||
|
assert_response :success
|
||
- « Previous
- 1
- 2
- Next »