diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2023-12-12 12:12:56 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2023-12-12 12:12:56 +0300 |
commit | 2d560e614a2d5feea84288c2d1f50b40d796f97a (patch) | |
tree | 8a6a18e6f5befc04de3db43554899aced9af5fd3 /spec/services | |
parent | d89147da045b9d00c4e35de3c7b39ed2b02ef7a6 (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/services')
-rw-r--r-- | spec/services/design_management/delete_designs_service_spec.rb | 2 | ||||
-rw-r--r-- | spec/services/design_management/save_designs_service_spec.rb | 6 |
2 files changed, 4 insertions, 4 deletions
diff --git a/spec/services/design_management/delete_designs_service_spec.rb b/spec/services/design_management/delete_designs_service_spec.rb index 5534dea85b2..79274599b99 100644 --- a/spec/services/design_management/delete_designs_service_spec.rb +++ b/spec/services/design_management/delete_designs_service_spec.rb @@ -139,7 +139,7 @@ RSpec.describe DesignManagement::DeleteDesignsService, feature_category: :design end it 'informs the new-version-worker' do - expect(::DesignManagement::NewVersionWorker).to receive(:perform_async).with(Integer, false) + expect(DesignManagement::NewVersionWorker).to receive(:perform_async).with(Integer, false) run_service end diff --git a/spec/services/design_management/save_designs_service_spec.rb b/spec/services/design_management/save_designs_service_spec.rb index 8a4dd8b5fc2..4ab0080d8a2 100644 --- a/spec/services/design_management/save_designs_service_spec.rb +++ b/spec/services/design_management/save_designs_service_spec.rb @@ -33,7 +33,7 @@ RSpec.describe DesignManagement::SaveDesignsService, feature_category: :design_m issue.design_collection.repository.raw.delete_all_refs_except([Gitlab::Git::BLANK_SHA]) end - allow(::DesignManagement::NewVersionWorker) + allow(DesignManagement::NewVersionWorker) .to receive(:perform_async).with(Integer, false).and_return(nil) end @@ -293,7 +293,7 @@ RSpec.describe DesignManagement::SaveDesignsService, feature_category: :design_m it 'has the correct side-effects' do counter = Gitlab::UsageDataCounters::DesignsCounter - expect(::DesignManagement::NewVersionWorker) + expect(DesignManagement::NewVersionWorker) .to receive(:perform_async).once.with(Integer, false).and_return(nil) expect { run_service } @@ -327,7 +327,7 @@ RSpec.describe DesignManagement::SaveDesignsService, feature_category: :design_m design_repository.create_if_not_exists design_repository.has_visible_content? - expect(::DesignManagement::NewVersionWorker) + expect(DesignManagement::NewVersionWorker) .to receive(:perform_async).once.with(Integer, false).and_return(nil) expect { service.execute } |