0
0
Fork 0

Extend custom CSS cache time with digest paths (#33207)

This commit is contained in:
Matt Jankowski 2025-01-08 03:48:45 -05:00 committed by GitHub
parent b3243ef41c
commit c0264c8013
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
11 changed files with 142 additions and 6 deletions

View 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