scoping down large request spec

This commit is contained in:
Maikel Linke
2015-06-06 13:26:21 +10:00
parent f88f42283a
commit 6c0238deac

View File

@@ -6,6 +6,8 @@ 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
expect(response).to redirect_to 'http://www.example.com/#login?after_login=/admin'
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)
end
end