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
372372
373373 def test_renders_component_with_asset_url
374374 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 )
376376
377377 if Rails . version . to_f < 8.0
378378 # Propshaft doesn't allow setting custom hosts so this only works in Rails < 8
379379 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 )
381381
382382 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 )
384384
385385 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 )
387387 end
388388 end
389389
You can’t perform that action at this time.
0 commit comments