Skip to content

Commit

Permalink
Adding a test to ensure absolute paths get in helper image unmangled.
Browse files Browse the repository at this point in the history
  • Loading branch information
sergiotarxz committed Feb 10, 2024
1 parent 85c5497 commit 3e08f25
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions t/mojolicious/static_prefix_lite_app.t
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ subtest 'Helpers with prefix' => sub {
<link href="/static/favicon.ico" rel="icon">
<link href="/static/foo.ico" rel="icon">
<img src="/static/foo.png">
<img src="http://example.com/foo.png">
<script src="/static/foo.js"></script>
<link href="/static/foo.css" rel="stylesheet">
<script src="/static/assets/app.js"></script>
Expand Down Expand Up @@ -94,6 +95,7 @@ __DATA__
%= favicon
%= favicon '/foo.ico'
%= image '/foo.png'
%= image 'http://example.com/foo.png'
%= javascript '/foo.js'
%= stylesheet '/foo.css'
%= asset_tag '/app.js'
Expand Down

0 comments on commit 3e08f25

Please sign in to comment.