summaryrefslogtreecommitdiff
path: root/spec/helpers/page_layout_helper_spec.rb
diff options
context:
space:
mode:
authorEric Eastwood <contact@ericeastwood.com>2018-03-27 12:59:14 -0500
committerEric Eastwood <contact@ericeastwood.com>2018-03-27 13:13:48 -0500
commitfca02e24768ea11d2f04a58437cb5557fd3c93fa (patch)
treeff4ec31775938eccad3ab642388f10165adeb702 /spec/helpers/page_layout_helper_spec.rb
parentde0c4730bb83b94195678e5ad4865ea648e6585f (diff)
downloadgitlab-ce-fca02e24768ea11d2f04a58437cb5557fd3c93fa.tar.gz
Update styling and use Gitlab::Utils.to_boolean
Diffstat (limited to 'spec/helpers/page_layout_helper_spec.rb')
-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 baf927a9acc..b77114a8152 100644
--- a/spec/helpers/page_layout_helper_spec.rb
+++ b/spec/helpers/page_layout_helper_spec.rb
@@ -50,6 +50,11 @@ describe PageLayoutHelper do
allow(Rails).to receive(:env).and_return(ActiveSupport::StringInquirer.new('development'))
expect(helper.favicon).to eq 'favicon-blue.ico'
end
+
+ it 'has yellow favicon for canary' do
+ stub_env('CANARY', 'true')
+ expect(helper.favicon).to eq 'favicon-yellow.ico'
+ end
end
describe 'page_image' do