Skip to content

Commit

Permalink
Merge pull request #2149 from sergiotarxz/main
Browse files Browse the repository at this point in the history
Adding a test to ensure absolute paths get unmangled in the image helper.
  • Loading branch information
mergify[bot] committed Feb 11, 2024
2 parents 37a4c39 + 1df2c4d commit a0d313f
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 a0d313f

Please sign in to comment.