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

pull/31600/head
Matt Jankowski 4 months ago committed by GitHub
parent 641ae6a2cf
commit 36ccdcc9e1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -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

@ -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
Loading…
Cancel
Save