Commit f620202b authored by Rajendra Kadam's avatar Rajendra Kadam Committed by Peter Leitzen

Remove duplicate environment finder spec

parent 4dfbaebf
...@@ -391,7 +391,6 @@ RSpec/RepeatedExample: ...@@ -391,7 +391,6 @@ RSpec/RepeatedExample:
- 'spec/features/issues/filtered_search/filter_issues_spec.rb' - 'spec/features/issues/filtered_search/filter_issues_spec.rb'
- 'spec/features/merge_request/user_posts_diff_notes_spec.rb' - 'spec/features/merge_request/user_posts_diff_notes_spec.rb'
- 'spec/features/projects/files/template_type_dropdown_spec.rb' - 'spec/features/projects/files/template_type_dropdown_spec.rb'
- 'spec/finders/environments_finder_spec.rb'
- 'spec/helpers/users_helper_spec.rb' - 'spec/helpers/users_helper_spec.rb'
- 'spec/lib/gitlab/import_export/project/relation_factory_spec.rb' - 'spec/lib/gitlab/import_export/project/relation_factory_spec.rb'
- 'spec/services/notification_service_spec.rb' - 'spec/services/notification_service_spec.rb'
......
---
title: Fix duplicate spec in environment finder
merge_request: 28857
author: Rajendra Kadam
type: added
...@@ -37,11 +37,6 @@ describe EnvironmentsFinder do ...@@ -37,11 +37,6 @@ describe EnvironmentsFinder do
.to be_empty .to be_empty
end end
it 'returns environment when with_tags is set' do
expect(described_class.new(project, user, ref: 'master', commit: commit, with_tags: true).execute)
.to contain_exactly(environment, environment_two)
end
# We expect two Gitaly calls: FindCommit, CommitIsAncestor # We expect two Gitaly calls: FindCommit, CommitIsAncestor
# This tests to ensure we don't call one CommitIsAncestor per environment # This tests to ensure we don't call one CommitIsAncestor per environment
it 'only calls Gitaly twice when multiple environments are present', :request_store do it 'only calls Gitaly twice when multiple environments are present', :request_store do
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment