From 9d2282b59609e3ef24266cf9bb503eb5fee67954 Mon Sep 17 00:00:00 2001
From: Suraj Tripathi <stripathi@gitlab.com>
Date: Tue, 23 Aug 2022 16:54:09 +0530
Subject: [PATCH] Updated testcase to check path explicitly

---
 spec/lib/container_registry/gitlab_api_client_spec.rb | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/spec/lib/container_registry/gitlab_api_client_spec.rb b/spec/lib/container_registry/gitlab_api_client_spec.rb
index 8cb1700e64405..f19bedbda0e36 100644
--- a/spec/lib/container_registry/gitlab_api_client_spec.rb
+++ b/spec/lib/container_registry/gitlab_api_client_spec.rb
@@ -421,7 +421,9 @@
 
       before do
         expect(Auth::ContainerRegistryAuthenticationService).to receive(:pull_nested_repositories_access_token).with(path.downcase).and_return(token)
-        stub_repository_details(path.downcase, sizing: :self_with_descendants, status_code: 200, respond_with: response)
+        expect_next_instance_of(described_class) do |client|
+          expect(client).to receive(:repository_details).with(path.downcase, sizing: :self_with_descendants).and_return(response.with_indifferent_access).once
+        end
       end
 
       it { is_expected.to eq(555) }
-- 
GitLab