diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2020-08-20 18:42:06 +0000 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2020-08-20 18:42:06 +0000 |
commit | 6e4e1050d9dba2b7b2523fdd1768823ab85feef4 (patch) | |
tree | 78be5963ec075d80116a932011d695dd33910b4e /spec/serializers/pipeline_entity_spec.rb | |
parent | 1ce776de4ae122aba3f349c02c17cebeaa8ecf07 (diff) | |
download | gitlab-ce-6e4e1050d9dba2b7b2523fdd1768823ab85feef4.tar.gz |
Add latest changes from gitlab-org/gitlab@13-3-stable-ee
Diffstat (limited to 'spec/serializers/pipeline_entity_spec.rb')
-rw-r--r-- | spec/serializers/pipeline_entity_spec.rb | 21 |
1 files changed, 2 insertions, 19 deletions
diff --git a/spec/serializers/pipeline_entity_spec.rb b/spec/serializers/pipeline_entity_spec.rb index e638b14765b..e00f05a8fe8 100644 --- a/spec/serializers/pipeline_entity_spec.rb +++ b/spec/serializers/pipeline_entity_spec.rb @@ -7,7 +7,6 @@ RSpec.describe PipelineEntity do let_it_be(:project) { create(:project) } let_it_be(:user) { create(:user) } - let_it_be(:project) { create(:project) } let(:request) { double('request') } before do @@ -265,24 +264,8 @@ RSpec.describe PipelineEntity do context 'when pipeline has build report results' do let(:pipeline) { create(:ci_pipeline, :with_report_results, project: project, user: user) } - context 'when feature is enabled' do - before do - stub_feature_flags(build_report_summary: true) - end - - it 'exposes tests total count' do - expect(subject[:tests_total_count]).to eq(2) - end - end - - context 'when feature is disabled' do - before do - stub_feature_flags(build_report_summary: false) - end - - it 'do not expose tests total count' do - expect(subject).not_to include(:tests_total_count) - end + it 'exposes tests total count' do + expect(subject[:tests_total_count]).to eq(2) end end end |