Skip to content

OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub

adapt spec

ulferts8e834072ed77
diff --git a/spec/services/users/delete_service_spec.rb b/spec/services/users/delete_service_spec.rb
index 50d932209bb..26e01f36ec9 100644
--- a/spec/services/users/delete_service_spec.rb
+++ b/spec/services/users/delete_service_spec.rb
@@ -38,7 +38,7 @@ describe ::Users::DeleteService, type: :model do
shared_examples 'deletes the user' do
it do
- expect(input_user).to receive(:lock!)
+ expect(input_user).to receive(:locked!)
expect(Principals::DeleteJob).to receive(:perform_later).with(input_user)
expect(subject).to be_success
end
@@ -46,7 +46,7 @@ describe ::Users::DeleteService, type: :model do
shared_examples 'does not delete the user' do
it do
- expect(input_user).not_to receive(:lock!)
+ expect(input_user).not_to receive(:locked!)
expect(Principals::DeleteJob).not_to receive(:perform_later)
expect(subject).not_to be_success
end
@@ -74,7 +74,7 @@ describe ::Users::DeleteService, type: :model do
it 'performs deletion' do
actor.run_given do
- expect(input_user).to receive(:lock!)
+ expect(input_user).to receive(:locked!)
expect(Principals::DeleteJob).to receive(:perform_later).with(input_user)
expect(subject).to be_success
end