Commit 921bc753 authored by Jasper Maes's avatar Jasper Maes

Fix deprecation: Passing conditions to delete_all is deprecated

parent 07e079e8
---
title: 'Fix deprecation: Passing conditions to delete_all is deprecated'
merge_request: 23817
author: Jasper Maes
type: other
...@@ -105,7 +105,7 @@ describe MergeRequestDiff do ...@@ -105,7 +105,7 @@ describe MergeRequestDiff do
context 'when the raw diffs are empty' do context 'when the raw diffs are empty' do
before do before do
MergeRequestDiffFile.delete_all(merge_request_diff_id: diff_with_commits.id) MergeRequestDiffFile.where(merge_request_diff_id: diff_with_commits.id).delete_all
end end
it 'returns an empty DiffCollection' do it 'returns an empty DiffCollection' do
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment