diff options
author | Kamil Trzcinski <ayufan@ayufan.eu> | 2017-06-07 13:32:16 +0300 |
---|---|---|
committer | Kamil Trzcinski <ayufan@ayufan.eu> | 2017-06-13 17:05:38 +0300 |
commit | 25b99a5b3beecb7251fef9097c44afd1f82f9f57 (patch) | |
tree | 8f005048ec11ae7ad27e5d999b263b458c7487a8 /spec/serializers/stage_entity_spec.rb | |
parent | d03e687882552cedaac2a493c9dbf4a3d98e0bac (diff) |
Update tests and application
Diffstat (limited to 'spec/serializers/stage_entity_spec.rb')
-rw-r--r-- | spec/serializers/stage_entity_spec.rb | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/spec/serializers/stage_entity_spec.rb b/spec/serializers/stage_entity_spec.rb index 64b3217b809..40e303f7b89 100644 --- a/spec/serializers/stage_entity_spec.rb +++ b/spec/serializers/stage_entity_spec.rb @@ -54,6 +54,17 @@ describe StageEntity do it 'exposes the group key' do expect(subject).to include :groups end + + context 'and contains commit status' do + before do + create(:generic_commit_status, pipeline: pipeline, stage: 'test') + end + + it 'contains commit status' do + groups = subject[:groups].map { |group| group[:name] } + expect(groups).to include('generic') + end + end end end end |