Fix Ruby 2.7 keyword parameter deprecations

Part of https://gitlab.com/gitlab-org/gitlab/-/issues/257438
parent 025a27b1
...@@ -22,7 +22,7 @@ RSpec.describe Geo::ReplicationToggleRequestService, :geo do ...@@ -22,7 +22,7 @@ RSpec.describe Geo::ReplicationToggleRequestService, :geo do
allow(Gitlab::HTTP).to receive(:perform_request).and_return(response) allow(Gitlab::HTTP).to receive(:perform_request).and_return(response)
expect(Gitlab::Geo).to receive(:expire_cache!) expect(Gitlab::Geo).to receive(:expire_cache!)
expect(subject.execute(args)).to be_truthy expect(subject.execute(**args)).to be_truthy
end end
it 'does not expire the geo cache on failure' do it 'does not expire the geo cache on failure' do
...@@ -34,6 +34,6 @@ RSpec.describe Geo::ReplicationToggleRequestService, :geo do ...@@ -34,6 +34,6 @@ RSpec.describe Geo::ReplicationToggleRequestService, :geo do
allow(Gitlab::HTTP).to receive(:perform_request).and_return(response) allow(Gitlab::HTTP).to receive(:perform_request).and_return(response)
expect(Gitlab::Geo).not_to receive(:expire_cache!) expect(Gitlab::Geo).not_to receive(:expire_cache!)
expect(subject.execute(args)).to be_falsey expect(subject.execute(**args)).to be_falsey
end end
end end
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