Fix namespacing in cookies test

NameError: uninitialized constant ActionDispatch::Cookies::SignedCookieJar::MAX_COOKIE_SIZE
     # ./spec/requests/large_request_spec.rb:8
This commit is contained in:
Matt-Yorkley
2019-12-22 20:43:45 +01:00
committed by Luis Ramos
parent 49bc3308be
commit 3615dcd355

View File

@@ -5,7 +5,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::SignedCookieJar::MAX_COOKIE_SIZE
get '/admin', 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)