Skip to content

Commit b69b7b5

Browse files
committed
more cases
1 parent b6cc12e commit b69b7b5

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test/sandbox/test/rendering_test.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -377,13 +377,13 @@ def test_renders_component_with_asset_url
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

0 commit comments

Comments
 (0)