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:
authorGitLab Bot <gitlab-bot@gitlab.com>2021-01-08 21:10:43 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2021-01-08 21:10:43 +0300
commit9bcb655610575956a858ae6fdb1d00deef5f6ad8 (patch)
tree8c2e013c86cf94d2596655bceab865feef53bd38 /spec/serializers/pipeline_details_entity_spec.rb
parent6e734c809b18a0470d81c78e1ecd9b3f8278de89 (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/serializers/pipeline_details_entity_spec.rb')
-rw-r--r--spec/serializers/pipeline_details_entity_spec.rb21
1 files changed, 1 insertions, 20 deletions
diff --git a/spec/serializers/pipeline_details_entity_spec.rb b/spec/serializers/pipeline_details_entity_spec.rb
index d3474f333b9..74e91cc9cdd 100644
--- a/spec/serializers/pipeline_details_entity_spec.rb
+++ b/spec/serializers/pipeline_details_entity_spec.rb
@@ -184,25 +184,6 @@ RSpec.describe PipelineDetailsEntity do
end
end
- context 'when a pipeline belongs to a public project' do
- let(:project) { create(:project, :public) }
- let(:pipeline) { create(:ci_empty_pipeline, status: :success, project: project) }
-
- context 'that has artifacts' do
- let!(:build) { create(:ci_build, :success, :artifacts, pipeline: pipeline) }
-
- it 'contains information about artifacts' do
- expect(subject[:details][:artifacts].length).to eq(1)
- end
- end
-
- context 'that has non public artifacts' do
- let!(:build) { create(:ci_build, :success, :artifacts, :non_public_artifacts, pipeline: pipeline) }
-
- it 'does not contain information about artifacts' do
- expect(subject[:details][:artifacts].length).to eq(0)
- end
- end
- end
+ it_behaves_like 'public artifacts'
end
end