Commit 9debcfd0 authored by Arturo Herrero's avatar Arturo Herrero

Fix kwargs deprecation warnings in lines unfolder spec

This commit fixes the warning:

Passing the keyword argument as the last hash parameter is deprecated
parent a2bd3d67
...@@ -188,7 +188,7 @@ RSpec.describe Gitlab::Diff::LinesUnfolder do ...@@ -188,7 +188,7 @@ RSpec.describe Gitlab::Diff::LinesUnfolder do
let(:old_blob) { Blob.decorate(Gitlab::Git::Blob.new(data: raw_old_blob, size: 10)) } let(:old_blob) { Blob.decorate(Gitlab::Git::Blob.new(data: raw_old_blob, size: 10)) }
let(:diff) do let(:diff) do
Gitlab::Git::Diff.new(diff: raw_diff, Gitlab::Git::Diff.new({ diff: raw_diff,
new_path: "build-aux/flatpak/org.gnome.Nautilus.json", new_path: "build-aux/flatpak/org.gnome.Nautilus.json",
old_path: "build-aux/flatpak/org.gnome.Nautilus.json", old_path: "build-aux/flatpak/org.gnome.Nautilus.json",
a_mode: "100644", a_mode: "100644",
...@@ -196,7 +196,7 @@ RSpec.describe Gitlab::Diff::LinesUnfolder do ...@@ -196,7 +196,7 @@ RSpec.describe Gitlab::Diff::LinesUnfolder do
new_file: false, new_file: false,
renamed_file: false, renamed_file: false,
deleted_file: false, deleted_file: false,
too_large: false) too_large: false })
end end
let(:diff_file) do let(:diff_file) 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