summaryrefslogtreecommitdiff
path: root/spec/controllers
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2023-03-23 03:08:37 +0000
committerGitLab Bot <gitlab-bot@gitlab.com>2023-03-23 03:08:37 +0000
commitad4ef35766b19c084f7762b528981fa95afb0c61 (patch)
treed806d1fd39b20f4bf29726673f1daaa4a84cc0f1 /spec/controllers
parentaaaa556ce9df9c3a8644f294f8ef6f0323b91e4e (diff)
downloadgitlab-ce-ad4ef35766b19c084f7762b528981fa95afb0c61.tar.gz
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/controllers')
-rw-r--r--spec/controllers/projects/design_management/designs/raw_images_controller_spec.rb6
1 files changed, 5 insertions, 1 deletions
diff --git a/spec/controllers/projects/design_management/designs/raw_images_controller_spec.rb b/spec/controllers/projects/design_management/designs/raw_images_controller_spec.rb
index 2d39e0e5317..a7f3212a6f9 100644
--- a/spec/controllers/projects/design_management/designs/raw_images_controller_spec.rb
+++ b/spec/controllers/projects/design_management/designs/raw_images_controller_spec.rb
@@ -80,8 +80,12 @@ RSpec.describe Projects::DesignManagement::Designs::RawImagesController do
let(:oldest_version) { design.versions.ordered.last }
shared_examples 'a successful request for sha' do
+ before do
+ allow(DesignManagement::GitRepository).to receive(:new).and_call_original
+ end
+
it do
- expect_next_instance_of(DesignManagement::Repository) do |repository|
+ expect_next_instance_of(DesignManagement::GitRepository) do |repository|
expect(repository).to receive(:blob_at).with(expected_ref, design.full_path).and_call_original
end