Skip to content

Commit

Permalink
Convert "custom css" controller spec to request spec (mastodon#31595)
Browse files Browse the repository at this point in the history
  • Loading branch information
mjankowski authored Aug 26, 2024
1 parent 641ae6a commit 36ccdcc
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 19 deletions.
19 changes: 0 additions & 19 deletions spec/controllers/custom_css_controller_spec.rb

This file was deleted.

19 changes: 19 additions & 0 deletions spec/requests/custom_stylesheets_spec.rb
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 36ccdcc

Please sign in to comment.