1
0

manifests_controller_spec.rb 611 B

123456789101112131415161718192021222324252627282930
  1. # frozen_string_literal: true
  2. require 'rails_helper'
  3. describe ManifestsController do
  4. render_views
  5. describe 'GET #show' do
  6. before do
  7. get :show
  8. end
  9. it 'returns http success' do
  10. expect(response).to have_http_status(200)
  11. end
  12. it 'returns public cache control header' do
  13. expect(response.headers['Cache-Control']).to include('public')
  14. end
  15. it 'does not set cookies' do
  16. expect(response.cookies).to be_empty
  17. expect(response.headers['Set-Cookies']).to be_nil
  18. end
  19. it 'does not set sessions' do
  20. expect(session).to be_empty
  21. end
  22. end
  23. end