diff options
author | Sean McGivern <sean@mcgivern.me.uk> | 2017-05-02 10:15:24 +0000 |
---|---|---|
committer | Sean McGivern <sean@mcgivern.me.uk> | 2017-05-02 10:15:24 +0000 |
commit | 6d211eb7acee8d491eb2ca3d4588cae76f235909 (patch) | |
tree | 6343e9156d75d384b42a1022cf8292e1196d63df /spec/serializers | |
parent | 47767e68fe21407876f9d36d47ba91b0cbed0684 (diff) | |
parent | 5f33903b1ea4cf5a1fe551467151556336f17493 (diff) | |
download | gitlab-ce-6d211eb7acee8d491eb2ca3d4588cae76f235909.tar.gz |
Merge branch 'add-tanuki-ci-status-favicons' into 'master'
updated to new favicons
Closes #12818
See merge request !10923
Diffstat (limited to 'spec/serializers')
-rw-r--r-- | spec/serializers/status_entity_spec.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/spec/serializers/status_entity_spec.rb b/spec/serializers/status_entity_spec.rb index c94902dbab8..3964b998084 100644 --- a/spec/serializers/status_entity_spec.rb +++ b/spec/serializers/status_entity_spec.rb @@ -18,6 +18,12 @@ describe StatusEntity do it 'contains status details' do expect(subject).to include :text, :icon, :favicon, :label, :group expect(subject).to include :has_details, :details_path + expect(subject[:favicon]).to eq('/assets/ci_favicons/favicon_status_success.ico') + end + + it 'contains a dev namespaced favicon if dev env' do + allow(Rails.env).to receive(:development?) { true } + expect(entity.as_json[:favicon]).to eq('/assets/ci_favicons/dev/favicon_status_success.ico') end end end |