Skip to content

Commit

Permalink
a few more url_for tests
Browse files Browse the repository at this point in the history
  • Loading branch information
kraih committed Jun 9, 2013
1 parent 933f61d commit 7e3fbea
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 0 deletions.
6 changes: 6 additions & 0 deletions t/mojolicious/embedded_lite_app.t
Expand Up @@ -174,6 +174,7 @@ $t->get_ok('/x/1/')->status_is(200)->content_is(<<'EOF');
works ♥!Insecure!Insecure!
too!works!!!Mojolicious::Plugin::Config::Sandbox
<a href="/x/1/">Test</a>
<form action="/x/1/%E2%98%83">
<input type="submit" value="☃" />
</form>
Expand Down Expand Up @@ -205,6 +206,7 @@ $t->get_ok('/x/♥/')->status_is(200)->content_is(<<'EOF');
works ♥!Insecure!Insecure!
too!works!!!Mojolicious::Plugin::Config::Sandbox
<a href="/x/%E2%99%A5/">Test</a>
<form action="/x/%E2%99%A5/%E2%98%83">
<input type="submit" value="☃" />
</form>
Expand Down Expand Up @@ -264,6 +266,7 @@ $t->get_ok('/' => {Host => 'mojolicious.org'})->status_is(200)
works ♥!Insecure!Insecure!
too!works!!!Mojolicious::Plugin::Config::Sandbox
<a href="/">Test</a>
<form action="/%E2%98%83">
<input type="submit" value="☃" />
</form>
Expand All @@ -279,6 +282,7 @@ $t->get_ok('/' => {Host => 'mojolicio.us'})->status_is(200)
works ♥!Insecure!Insecure!
too!works!!!Mojolicious::Plugin::Config::Sandbox
<a href="/">Test</a>
<form action="/%E2%98%83">
<input type="submit" value="☃" />
</form>
Expand All @@ -294,6 +298,7 @@ $t->get_ok('/' => {Host => 'example.com'})->status_is(200)
works ♥!Insecure!Insecure!
too!works!!!Mojolicious::Plugin::Config::Sandbox
<a href="/">Test</a>
<form action="/%E2%98%83">
<input type="submit" value="☃" />
</form>
Expand All @@ -317,6 +322,7 @@ $t->get_ok('/♥/123/' => {Host => 'foo-bar.de'})->status_is(200)
works ♥!Insecure!Insecure!
too!works!!!Mojolicious::Plugin::Config::Sandbox
<a href="/%E2%99%A5/123/">Test</a>
<form action="/%E2%99%A5/123/%E2%98%83">
<input type="submit" value="☃" />
</form>
Expand Down
1 change: 1 addition & 0 deletions t/mojolicious/external/templates/index.html.ep
@@ -1,5 +1,6 @@
%= include 'menubar'
<%= $config->{works} . stash('also') . stash('in') %>
%= link_to Test => '/'
%= form_for '/☃' => begin
%= submit_button '☃'
%= end
1 change: 1 addition & 0 deletions t/mojolicious/external_lite_app.t
Expand Up @@ -20,6 +20,7 @@ $t->get_ok('/')->status_is(200)->content_is(<<'EOF');
works ♥!Insecure!Insecure!
too!works!!!Mojolicious::Plugin::Config::Sandbox
<a href="/">Test</a>
<form action="/%E2%98%83">
<input type="submit" value="☃" />
</form>
Expand Down

0 comments on commit 7e3fbea

Please sign in to comment.