You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
468 B
20 lines
468 B
|
3 weeks ago
|
# 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
|