FIX: Support Ruby 3 keyword arguments

This commit is contained in:
Yasuo Honda
2021-09-27 21:45:05 +09:00
committed by Robin Ward
parent 5569723321
commit dbbfad7ed0
12 changed files with 24 additions and 24 deletions

View File

@ -72,7 +72,7 @@ end
shared_examples 'action requires login' do |method, url, params = {}|
it 'raises an exception when not logged in' do
self.public_send(method, url, params)
self.public_send(method, url, **params)
expect(response.status).to eq(403)
end
end