custom_stylesheets_spec.rb 386 B

123456789101112131415161718
  1. # frozen_string_literal: true
  2. require 'rails_helper'
  3. RSpec.describe 'Custom stylesheets' do
  4. describe 'GET /custom.css' do
  5. before { get '/custom.css' }
  6. it 'returns http success' do
  7. expect(response)
  8. .to have_http_status(200)
  9. .and have_cacheable_headers
  10. .and have_attributes(
  11. content_type: match('text/css')
  12. )
  13. end
  14. end
  15. end