Commit 1afb822f authored by Imre Farkas's avatar Imre Farkas

Merge branch 'da-fix-ruby-2.7-kwargs-geo-replication-toggle-request-service' into 'master'

Fix Ruby 2.7 keyword parameter deprecations in Geo::ReplicationToggleRequestService tests

See merge request gitlab-org/gitlab!43797
parents 21d3afd3 80827148
......@@ -22,7 +22,7 @@ RSpec.describe Geo::ReplicationToggleRequestService, :geo do
allow(Gitlab::HTTP).to receive(:perform_request).and_return(response)
expect(Gitlab::Geo).to receive(:expire_cache!)
expect(subject.execute(args)).to be_truthy
expect(subject.execute(**args)).to be_truthy
end
it 'does not expire the geo cache on failure' do
......@@ -34,6 +34,6 @@ RSpec.describe Geo::ReplicationToggleRequestService, :geo do
allow(Gitlab::HTTP).to receive(:perform_request).and_return(response)
expect(Gitlab::Geo).not_to receive(:expire_cache!)
expect(subject.execute(args)).to be_falsey
expect(subject.execute(**args)).to be_falsey
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