1
0

verifications_controller_spec.rb 569 B

1234567891011121314151617181920212223242526272829
  1. # frozen_string_literal: true
  2. require 'rails_helper'
  3. RSpec.describe Settings::VerificationsController do
  4. render_views
  5. let!(:user) { Fabricate(:user) }
  6. before do
  7. sign_in user, scope: :user
  8. end
  9. describe 'GET #show' do
  10. before do
  11. get :show
  12. end
  13. it 'returns http success with private cache control headers', :aggregate_failures do
  14. expect(response)
  15. .to have_http_status(200)
  16. .and have_attributes(
  17. headers: include(
  18. 'Cache-Control' => 'private, no-store'
  19. )
  20. )
  21. end
  22. end
  23. end