Skip to content

Commit

Permalink
Adding a test to ensure absolute paths get unmangled.
Browse files Browse the repository at this point in the history
  • Loading branch information
sergiotarxz committed Feb 10, 2024
1 parent 37a4c39 commit 54783d4
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 54783d4

Please sign in to comment.