diff options
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 |