diff options
author | Alexis Reigel <mail@koffeinfrei.org> | 2017-09-26 16:22:04 +0200 |
---|---|---|
committer | Alexis Reigel <mail@koffeinfrei.org> | 2018-06-05 16:20:19 +0200 |
commit | 8967fc0477d176cb5b93ad3a9f2cf19eaca14876 (patch) | |
tree | bf700f1556945a999c783574fef3a892e0acaf6b /spec/helpers | |
parent | 40d8d7df4bd437efc81f0bdff5f93b4b65844cb5 (diff) | |
download | gitlab-ce-8967fc0477d176cb5b93ad3a9f2cf19eaca14876.tar.gz |
use custom main favicon
Diffstat (limited to 'spec/helpers')
-rw-r--r-- | spec/helpers/page_layout_helper_spec.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/spec/helpers/page_layout_helper_spec.rb b/spec/helpers/page_layout_helper_spec.rb index b77114a8152..53ecf25612f 100644 --- a/spec/helpers/page_layout_helper_spec.rb +++ b/spec/helpers/page_layout_helper_spec.rb @@ -55,6 +55,11 @@ describe PageLayoutHelper do stub_env('CANARY', 'true') expect(helper.favicon).to eq 'favicon-yellow.ico' end + + it 'uses the custom favicon if an favicon appearance is present' do + create :appearance, favicon: fixture_file_upload(Rails.root.join('spec/fixtures/dk.png')) + expect(helper.favicon).to match %r{/uploads/-/system/appearance/favicon/\d+/default_dk.ico} + end end describe 'page_image' do |