diff options
author | Simon Knox <psimyn@gmail.com> | 2017-02-16 01:07:29 +1100 |
---|---|---|
committer | Simon Knox <psimyn@gmail.com> | 2017-02-16 01:07:29 +1100 |
commit | e15032eded3b35097409817ddb1844164173ce1a (patch) | |
tree | ec08eff5462bf88b04c9af9e3c6ca6ec952451eb /spec/helpers/page_layout_helper_spec.rb | |
parent | 35b31ba84fd4ea37debfaf50a5ab98a417f2158a (diff) | |
download | gitlab-ce-e15032eded3b35097409817ddb1844164173ce1a.tar.gz |
override favicon for development to find tabs more easily
Diffstat (limited to 'spec/helpers/page_layout_helper_spec.rb')
-rw-r--r-- | spec/helpers/page_layout_helper_spec.rb | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/spec/helpers/page_layout_helper_spec.rb b/spec/helpers/page_layout_helper_spec.rb index dc07657e101..872679a6ce3 100644 --- a/spec/helpers/page_layout_helper_spec.rb +++ b/spec/helpers/page_layout_helper_spec.rb @@ -40,6 +40,18 @@ describe PageLayoutHelper do end end + describe 'favicon' do + it 'defaults to favicon.ico' do + allow(Rails).to receive(:env).and_return(ActiveSupport::StringInquirer.new('production')) + expect(helper.favicon).to eq 'favicon.ico' + end + + it 'has purple favicon for development' do + allow(Rails).to receive(:env).and_return(ActiveSupport::StringInquirer.new('development')) + expect(helper.favicon).to eq 'favicon-purple.ico' + end + end + describe 'page_image' do it 'defaults to the GitLab logo' do expect(helper.page_image).to end_with 'assets/gitlab_logo.png' |