mirror of
https://github.com/mastodon/mastodon.git
synced 2024-12-22 12:55:56 +01:00
Routing spec
This commit is contained in:
parent
454981752d
commit
40a085ee72
1 changed files with 19 additions and 0 deletions
19
spec/routing/custom_css_routing_spec.rb
Normal file
19
spec/routing/custom_css_routing_spec.rb
Normal file
|
@ -0,0 +1,19 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
require 'rails_helper'
|
||||
|
||||
RSpec.describe 'Custom CSS routes' do
|
||||
describe 'the legacy route' do
|
||||
it 'routes to correct place' do
|
||||
expect(get('/custom.css'))
|
||||
.to route_to('custom_css#show')
|
||||
end
|
||||
end
|
||||
|
||||
describe 'the custom digest route' do
|
||||
it 'routes to correct place' do
|
||||
expect(get('/css/custom-1a2s3d4f.css'))
|
||||
.to route_to('custom_css#show', id: 'custom-1a2s3d4f', format: 'css')
|
||||
end
|
||||
end
|
||||
end
|
Loading…
Reference in a new issue