Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexis Reigel <mail@koffeinfrei.org>2017-09-26 17:22:04 +0300
committerAlexis Reigel <mail@koffeinfrei.org>2018-06-05 17:20:19 +0300
commit8967fc0477d176cb5b93ad3a9f2cf19eaca14876 (patch)
treebf700f1556945a999c783574fef3a892e0acaf6b /spec/helpers
parent40d8d7df4bd437efc81f0bdff5f93b4b65844cb5 (diff)
use custom main favicon
Diffstat (limited to 'spec/helpers')
-rw-r--r--spec/helpers/page_layout_helper_spec.rb5
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