diff options
author | Eric Eastwood <contact@ericeastwood.com> | 2018-03-27 20:59:14 +0300 |
---|---|---|
committer | Eric Eastwood <contact@ericeastwood.com> | 2018-03-27 21:13:48 +0300 |
commit | fca02e24768ea11d2f04a58437cb5557fd3c93fa (patch) | |
tree | ff4ec31775938eccad3ab642388f10165adeb702 /spec/serializers | |
parent | de0c4730bb83b94195678e5ad4865ea648e6585f (diff) |
Update styling and use Gitlab::Utils.to_boolean
Diffstat (limited to 'spec/serializers')
-rw-r--r-- | spec/serializers/status_entity_spec.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/spec/serializers/status_entity_spec.rb b/spec/serializers/status_entity_spec.rb index 16431ed4188..11dc974a5cf 100644 --- a/spec/serializers/status_entity_spec.rb +++ b/spec/serializers/status_entity_spec.rb @@ -25,5 +25,10 @@ describe StatusEntity do allow(Rails.env).to receive(:development?) { true } expect(entity.as_json[:favicon]).to match_asset_path('/assets/ci_favicons/dev/favicon_status_success.ico') end + + it 'contains a canavary namespaced favicon if canary env' do + stub_env('CANARY', 'true') + expect(entity.as_json[:favicon]).to match_asset_path('/assets/ci_favicons/canary/favicon_status_success.ico') + end end end |