Use the newer syntax

This commit is contained in:
David Cook
2023-08-10 14:52:04 +10:00
parent ad37c401e5
commit c191158a97

View File

@@ -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