From c191158a974d9e0fd5da7b4e215c645d14887668 Mon Sep 17 00:00:00 2001 From: David Cook Date: Thu, 10 Aug 2023 14:52:04 +1000 Subject: [PATCH] Use the newer syntax --- spec/requests/large_request_spec.rb | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/spec/requests/large_request_spec.rb b/spec/requests/large_request_spec.rb index 979b6c941d..2bb91d853f 100644 --- a/spec/requests/large_request_spec.rb +++ b/spec/requests/large_request_spec.rb @@ -8,8 +8,6 @@ require 'spec_helper' RSpec.describe 'A very large request', type: :request do it 'should not overflow cookies' do 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) + expect(response).to have_http_status(:redirect) end end