Update Ruby to 3.3

This commit is contained in:
Sebastian Serth
2023-12-25 11:01:23 +01:00
parent aa8222a9ef
commit 04863f1f25
8 changed files with 18 additions and 15 deletions

View File

@ -37,10 +37,10 @@ def expect_json
expect_content_type('application/json')
end
def expect_redirect(path = nil, &)
if block_given?
def expect_redirect(path = nil, &block)
if block
it 'performs a redirect to the location given' do
expect(controller).to redirect_to(instance_eval(&))
expect(controller).to redirect_to(instance_eval(&block))
end
elsif path
it "redirects to #{path}" do