From 71a67d17b02e7b8dec2f4c257f6734dc7818fb1e Mon Sep 17 00:00:00 2001 From: GitLab Bot Date: Wed, 12 May 2021 12:10:24 +0000 Subject: Add latest changes from gitlab-org/gitlab@master --- spec/serializers/pipeline_details_entity_spec.rb | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'spec/serializers') diff --git a/spec/serializers/pipeline_details_entity_spec.rb b/spec/serializers/pipeline_details_entity_spec.rb index 67f8860ed4a..128f1922887 100644 --- a/spec/serializers/pipeline_details_entity_spec.rb +++ b/spec/serializers/pipeline_details_entity_spec.rb @@ -70,6 +70,20 @@ RSpec.describe PipelineDetailsEntity do expect(subject[:flags][:retryable]).to eq false end end + + it 'does not contain code_quality_build_path in details' do + expect(subject[:details]).not_to include :code_quality_build_path + end + + context 'when option code_quality_walkthrough is set and pipeline is a success' do + let(:entity) do + described_class.represent(pipeline, request: request, code_quality_walkthrough: true) + end + + it 'contains details.code_quality_build_path' do + expect(subject[:details]).to include :code_quality_build_path + end + end end context 'when pipeline is cancelable' do -- cgit v1.2.3