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>2022-11-30 09:07:07 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2022-11-30 09:07:07 +0300
commite05c9eaaa97aca4cd530f72652cb22dfb7305732 (patch)
tree51abc57e27208821750cda4f255e3e79d176d42d /spec/requests/api
parent43d2ea48e7a22ebd86fdb717b9201ac3d26c74eb (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/requests/api')
-rw-r--r--spec/requests/api/graphql/project/branch_rules_spec.rb2
1 files changed, 0 insertions, 2 deletions
diff --git a/spec/requests/api/graphql/project/branch_rules_spec.rb b/spec/requests/api/graphql/project/branch_rules_spec.rb
index 957bf7001b3..0512f00ebc8 100644
--- a/spec/requests/api/graphql/project/branch_rules_spec.rb
+++ b/spec/requests/api/graphql/project/branch_rules_spec.rb
@@ -75,7 +75,6 @@ RSpec.describe 'getting list of branch rules for a project' do
.and_return(project)
end
allow(project.repository).to receive(:branch_names).and_call_original
- allow(project.repository.gitaly_ref_client).to receive(:branch_names).and_call_original
end
it 'avoids N+1 queries', :use_sql_query_cache, :aggregate_failures do
@@ -95,7 +94,6 @@ RSpec.describe 'getting list of branch rules for a project' do
expect_n_matching_branches_count_fields(3)
expect(project.repository).to have_received(:branch_names).at_least(2).times
- expect(project.repository.gitaly_ref_client).to have_received(:branch_names).once
end
def expect_n_matching_branches_count_fields(count)