Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'spec/serializers/ci/pipeline_entity_spec.rb')
-rw-r--r--spec/serializers/ci/pipeline_entity_spec.rb7
1 files changed, 6 insertions, 1 deletions
diff --git a/spec/serializers/ci/pipeline_entity_spec.rb b/spec/serializers/ci/pipeline_entity_spec.rb
index 808dc38f653..7889ac03f8f 100644
--- a/spec/serializers/ci/pipeline_entity_spec.rb
+++ b/spec/serializers/ci/pipeline_entity_spec.rb
@@ -31,10 +31,15 @@ RSpec.describe Ci::PipelineEntity do
end
it 'contains details' do
+ allow(pipeline).to receive(:merge_request_event_type).and_return(:merged_result)
+
expect(subject).to include :details
expect(subject[:details])
- .to include :duration, :finished_at, :name
+ .to include :duration, :finished_at, :name, :event_type_name
expect(subject[:details][:status]).to include :icon, :favicon, :text, :label, :tooltip
+
+ expect(subject[:details][:event_type_name]).to eq('Merged result pipeline')
+ expect(subject[:details][:name]).to eq('Merged result pipeline')
end
it 'contains flags' do