From bb3197093ddfc3170fbafb7db921efd8e5dd2353 Mon Sep 17 00:00:00 2001 From: Luis Ramos Date: Fri, 9 Apr 2021 23:51:51 +0100 Subject: [PATCH] Fix rspec syntax --- spec/requests/large_request_spec.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec/requests/large_request_spec.rb b/spec/requests/large_request_spec.rb index 5631ef4f05..979b6c941d 100644 --- a/spec/requests/large_request_spec.rb +++ b/spec/requests/large_request_spec.rb @@ -7,7 +7,7 @@ require 'spec_helper' RSpec.describe 'A very large request', type: :request do it 'should not overflow cookies' do - get '/admin', foo: 'x' * ActionDispatch::Cookies::MAX_COOKIE_SIZE + get '/admin', params: { foo: 'x' * ActionDispatch::Cookies::MAX_COOKIE_SIZE } expect(response.status).to eq(302) # HTTP status 302 - Found ## Use the newer syntax if rspec gets upgraded # expect(response).to have_http_status(:redirect)