forked from mastodon/mastodon
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Convert "custom css" controller spec to request spec (mastodon#31595)
- Loading branch information
1 parent
641ae6a
commit 36ccdcc
Showing
2 changed files
with
19 additions
and
19 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |