diff options
author | Luke "Jared" Bennett <lbennett@gitlab.com> | 2017-04-25 18:36:05 +0100 |
---|---|---|
committer | Luke "Jared" Bennett <lbennett@gitlab.com> | 2017-04-25 18:36:05 +0100 |
commit | a14e28abe059cd48b91156227d1ae7f1fbc699fa (patch) | |
tree | 5ca0eecfa03c99e9738e19085e1858df11e06c48 /spec/serializers | |
parent | f5e8d6bded71a0ed827c2f1becb3a3a81ad1f163 (diff) | |
download | gitlab-ce-a14e28abe059cd48b91156227d1ae7f1fbc699fa.tar.gz |
Added test
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 |