|
|
|
@ -16,7 +16,7 @@ describe StatusesController do
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
it 'returns Vary header' do
|
|
|
|
|
expect(response.headers['Vary']).to include 'Accept'
|
|
|
|
|
expect(response.headers['Vary']).to include 'Accept, Accept-Language, Cookie'
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
it 'returns public Cache-Control header' do
|
|
|
|
@ -84,7 +84,7 @@ describe StatusesController do
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
it 'returns Vary header' do
|
|
|
|
|
expect(response.headers['Vary']).to eq 'Accept'
|
|
|
|
|
expect(response.headers['Vary']).to eq 'Accept, Accept-Language, Cookie'
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
it 'returns public Cache-Control header' do
|
|
|
|
@ -109,7 +109,7 @@ describe StatusesController do
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
it 'returns Vary header' do
|
|
|
|
|
expect(response.headers['Vary']).to eq 'Accept'
|
|
|
|
|
expect(response.headers['Vary']).to eq 'Accept, Accept-Language, Cookie'
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
it_behaves_like 'cacheable response'
|
|
|
|
@ -208,11 +208,11 @@ describe StatusesController do
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
it 'returns Vary header' do
|
|
|
|
|
expect(response.headers['Vary']).to eq 'Accept'
|
|
|
|
|
expect(response.headers['Vary']).to eq 'Accept, Accept-Language, Cookie'
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
it 'returns no Cache-Control header' do
|
|
|
|
|
expect(response.headers).to_not include 'Cache-Control'
|
|
|
|
|
it 'returns private Cache-Control header' do
|
|
|
|
|
expect(response.headers['Cache-Control']).to include 'private'
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
it 'renders status' do
|
|
|
|
@ -233,11 +233,11 @@ describe StatusesController do
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
it 'returns Vary header' do
|
|
|
|
|
expect(response.headers['Vary']).to eq 'Accept'
|
|
|
|
|
expect(response.headers['Vary']).to eq 'Accept, Accept-Language, Cookie'
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
it 'returns public Cache-Control header' do
|
|
|
|
|
expect(response.headers['Cache-Control']).to include 'public'
|
|
|
|
|
it 'returns private Cache-Control header' do
|
|
|
|
|
expect(response.headers['Cache-Control']).to include 'private'
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
it 'returns Content-Type header' do
|
|
|
|
@ -272,11 +272,11 @@ describe StatusesController do
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
it 'returns Vary header' do
|
|
|
|
|
expect(response.headers['Vary']).to eq 'Accept'
|
|
|
|
|
expect(response.headers['Vary']).to eq 'Accept, Accept-Language, Cookie'
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
it 'returns no Cache-Control header' do
|
|
|
|
|
expect(response.headers).to_not include 'Cache-Control'
|
|
|
|
|
it 'returns private Cache-Control header' do
|
|
|
|
|
expect(response.headers['Cache-Control']).to include 'private'
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
it 'renders status' do
|
|
|
|
@ -297,7 +297,7 @@ describe StatusesController do
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
it 'returns Vary header' do
|
|
|
|
|
expect(response.headers['Vary']).to eq 'Accept'
|
|
|
|
|
expect(response.headers['Vary']).to eq 'Accept, Accept-Language, Cookie'
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
it 'returns private Cache-Control header' do
|
|
|
|
@ -359,11 +359,11 @@ describe StatusesController do
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
it 'returns Vary header' do
|
|
|
|
|
expect(response.headers['Vary']).to eq 'Accept'
|
|
|
|
|
expect(response.headers['Vary']).to eq 'Accept, Accept-Language, Cookie'
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
it 'returns no Cache-Control header' do
|
|
|
|
|
expect(response.headers).to_not include 'Cache-Control'
|
|
|
|
|
it 'returns private Cache-Control header' do
|
|
|
|
|
expect(response.headers['Cache-Control']).to include 'private'
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
it 'renders status' do
|
|
|
|
@ -384,7 +384,7 @@ describe StatusesController do
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
it 'returns Vary header' do
|
|
|
|
|
expect(response.headers['Vary']).to eq 'Accept'
|
|
|
|
|
expect(response.headers['Vary']).to eq 'Accept, Accept-Language, Cookie'
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
it 'returns private Cache-Control header' do
|
|
|
|
@ -472,11 +472,11 @@ describe StatusesController do
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
it 'returns Vary header' do
|
|
|
|
|
expect(response.headers['Vary']).to eq 'Accept'
|
|
|
|
|
expect(response.headers['Vary']).to eq 'Accept, Accept-Language, Cookie'
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
it 'returns no Cache-Control header' do
|
|
|
|
|
expect(response.headers).to_not include 'Cache-Control'
|
|
|
|
|
it 'returns private Cache-Control header' do
|
|
|
|
|
expect(response.headers['Cache-Control']).to include 'private'
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
it 'renders status' do
|
|
|
|
@ -497,7 +497,7 @@ describe StatusesController do
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
it 'returns Vary header' do
|
|
|
|
|
expect(response.headers['Vary']).to eq 'Accept'
|
|
|
|
|
expect(response.headers['Vary']).to eq 'Accept, Accept-Language, Cookie'
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
it_behaves_like 'cacheable response'
|
|
|
|
@ -534,11 +534,11 @@ describe StatusesController do
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
it 'returns Vary header' do
|
|
|
|
|
expect(response.headers['Vary']).to eq 'Accept'
|
|
|
|
|
expect(response.headers['Vary']).to eq 'Accept, Accept-Language, Cookie'
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
it 'returns no Cache-Control header' do
|
|
|
|
|
expect(response.headers).to_not include 'Cache-Control'
|
|
|
|
|
it 'returns private Cache-Control header' do
|
|
|
|
|
expect(response.headers['Cache-Control']).to include 'private'
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
it 'renders status' do
|
|
|
|
@ -559,7 +559,7 @@ describe StatusesController do
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
it 'returns Vary header' do
|
|
|
|
|
expect(response.headers['Vary']).to eq 'Accept'
|
|
|
|
|
expect(response.headers['Vary']).to eq 'Accept, Accept-Language, Cookie'
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
it 'returns private Cache-Control header' do
|
|
|
|
@ -621,11 +621,11 @@ describe StatusesController do
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
it 'returns Vary header' do
|
|
|
|
|
expect(response.headers['Vary']).to eq 'Accept'
|
|
|
|
|
expect(response.headers['Vary']).to eq 'Accept, Accept-Language, Cookie'
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
it 'returns no Cache-Control header' do
|
|
|
|
|
expect(response.headers).to_not include 'Cache-Control'
|
|
|
|
|
it 'returns private Cache-Control header' do
|
|
|
|
|
expect(response.headers['Cache-Control']).to include 'private'
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
it 'renders status' do
|
|
|
|
@ -646,7 +646,7 @@ describe StatusesController do
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
it 'returns Vary header' do
|
|
|
|
|
expect(response.headers['Vary']).to eq 'Accept'
|
|
|
|
|
expect(response.headers['Vary']).to eq 'Accept, Accept-Language, Cookie'
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
it 'returns private Cache-Control header' do
|
|
|
|
@ -827,7 +827,7 @@ describe StatusesController do
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
it 'returns Vary header' do
|
|
|
|
|
expect(response.headers['Vary']).to eq 'Accept'
|
|
|
|
|
expect(response.headers['Vary']).to eq 'Accept, Accept-Language, Cookie'
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
it 'returns public Cache-Control header' do
|
|
|
|
|