Convert "custom css" controller spec to request spec (#31595)

pull/31600/head
Matt Jankowski 2024-08-26 10:36:31 -04:00 committed by GitHub
parent 641ae6a2cf
commit 36ccdcc9e1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 19 additions and 19 deletions

View File

@ -1,19 +0,0 @@
# frozen_string_literal: true
require 'rails_helper'
describe CustomCssController do
render_views
describe 'GET #show' do
before do
get :show
end
it 'returns http success' do
expect(response).to have_http_status(200)
end
it_behaves_like 'cacheable response'
end
end

View File

@ -0,0 +1,19 @@
# frozen_string_literal: true
require 'rails_helper'
describe 'Custom stylesheets' do
describe 'GET /custom.css' do
before { get '/custom.css' }
it 'returns http success' do
expect(response)
.to have_http_status(200)
.and have_attributes(
content_type: match('text/css')
)
end
it_behaves_like 'cacheable response'
end
end