From 3615dcd35512015567eb52901a3dad26013ba5a3 Mon Sep 17 00:00:00 2001 From: Matt-Yorkley <9029026+Matt-Yorkley@users.noreply.github.com> Date: Sun, 22 Dec 2019 20:43:45 +0100 Subject: [PATCH] Fix namespacing in cookies test NameError: uninitialized constant ActionDispatch::Cookies::SignedCookieJar::MAX_COOKIE_SIZE # ./spec/requests/large_request_spec.rb:8 --- 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 6e389d5ecb..9a5e668aa7 100644 --- a/spec/requests/large_request_spec.rb +++ b/spec/requests/large_request_spec.rb @@ -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)