File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -372,18 +372,18 @@ def test_renders_component_without_format
372
372
373
373
def test_renders_component_with_asset_url
374
374
component = AssetComponent . new
375
- assert_match ( %r{http://assets.example.com/assets/application-\w +.css} , render_inline ( component ) . text )
375
+ assert_match ( %r{http://assets\ . example\ . com/assets/application-\w +\ . css} , render_inline ( component ) . text )
376
376
377
377
if Rails . version . to_f < 8.0
378
378
# Propshaft doesn't allow setting custom hosts so this only works in Rails < 8
379
379
component . config . asset_host = nil
380
- assert_match ( %r{/assets/application-\w +.css} , render_inline ( component ) . text )
380
+ assert_match ( %r{/assets/application-\w +\ . css} , render_inline ( component ) . text )
381
381
382
382
component . config . asset_host = "http://assets.example.com"
383
- assert_match ( %r{http://assets.example.com/assets/application-\w +.css} , render_inline ( component ) . text )
383
+ assert_match ( %r{http://assets\ . example\ . com/assets/application-\w +\ . css} , render_inline ( component ) . text )
384
384
385
385
component . config . asset_host = "assets.example.com"
386
- assert_match ( %r{http://assets.example.com/assets/application-\w +.css} , render_inline ( component ) . text )
386
+ assert_match ( %r{http://assets\ . example\ . com/assets/application-\w +\ . css} , render_inline ( component ) . text )
387
387
end
388
388
end
389
389
You can’t perform that action at this time.
0 commit comments