diff options
Diffstat (limited to 'spec/workers/repository_cleanup_worker_spec.rb')
-rw-r--r-- | spec/workers/repository_cleanup_worker_spec.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/workers/repository_cleanup_worker_spec.rb b/spec/workers/repository_cleanup_worker_spec.rb index 41bfeabb7f3..f5887d08bd2 100644 --- a/spec/workers/repository_cleanup_worker_spec.rb +++ b/spec/workers/repository_cleanup_worker_spec.rb @@ -25,13 +25,13 @@ RSpec.describe RepositoryCleanupWorker do end it 'raises an error if the project cannot be found' do - project.destroy + project.destroy! expect { worker.perform(project.id, user.id) }.to raise_error(ActiveRecord::RecordNotFound) end it 'raises an error if the user cannot be found' do - user.destroy + user.destroy! expect { worker.perform(project.id, user.id) }.to raise_error(ActiveRecord::RecordNotFound) end |