Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
even better config plugin tests
  • Loading branch information
kraih committed May 5, 2012
1 parent 600aaac commit 5e0f449
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 8 deletions.
12 changes: 6 additions & 6 deletions t/mojolicious/embedded_lite_app.t
Expand Up @@ -187,7 +187,7 @@ $t->get_ok('/just/works/too')->status_is(200)->content_is("It just works!\n");

# GET /x/1/ (full external application)
$t->get_ok('/x/1/')->status_is(200)->content_is(<<'EOF');
works!Insecure!Insecure!
works!Insecure!Insecure!
too!works!!!
<form action="/x/1/%E2%98%83">
Expand All @@ -211,7 +211,7 @@ $t->get_ok('/x/1/url/☃')->status_is(200)

# GET /x/♥/ (full external application)
$t->get_ok('/x/♥/')->status_is(200)->content_is(<<'EOF');
works!Insecure!Insecure!
works!Insecure!Insecure!
too!works!!!
<form action="/x/%E2%99%A5/%E2%98%83">
Expand Down Expand Up @@ -239,7 +239,7 @@ $t->get_ok('/host')->status_is(200)->content_is('main application!');
# GET / (full external application with domain)
$t->get_ok('/' => {Host => 'mojolicious.org'})->status_is(200)
->content_is(<<'EOF');
works!Insecure!Insecure!
works!Insecure!Insecure!
too!works!!!
<form action="/%E2%98%83">
Expand All @@ -254,7 +254,7 @@ $t->get_ok('/host' => {Host => 'mojolicious.org'})->status_is(200)
# GET / (full external application with domain)
$t->get_ok('/' => {Host => 'mojolicio.us'})->status_is(200)
->content_is(<<'EOF');
works!Insecure!Insecure!
works!Insecure!Insecure!
too!works!!!
<form action="/%E2%98%83">
Expand All @@ -268,7 +268,7 @@ $t->get_ok('/host' => {Host => 'mojolicio.us'})->status_is(200)

# GET / (full external application with domain)
$t->get_ok('/' => {Host => 'kraih.com'})->status_is(200)->content_is(<<'EOF');
works!Insecure!Insecure!
works!Insecure!Insecure!
too!works!!!
<form action="/%E2%98%83">
Expand All @@ -291,7 +291,7 @@ $t->get_ok('/host' => {Host => 'foo.bar.kraih.com'})->status_is(200)
# GET /♥/123/ (full external application with a bit of everything)
$t->get_ok('/♥/123/' => {Host => 'foo-bar.de'})->status_is(200)
->content_is(<<'EOF');
works!Insecure!Insecure!
works!Insecure!Insecure!
too!works!!!
<form action="/%E2%99%A5/123/%E2%98%83">
Expand Down
3 changes: 2 additions & 1 deletion t/mojolicious/external/myapp.conf
@@ -1,2 +1,3 @@
use utf8;
app->defaults(also => 'works!!!');
{just => "works!"};
{just => "works!"};
2 changes: 1 addition & 1 deletion t/mojolicious/external_lite_app.t
Expand Up @@ -21,7 +21,7 @@ my $t = Test::Mojo->new;

# GET /
$t->get_ok('/')->status_is(200)->content_is(<<'EOF');
works!Insecure!Insecure!
works!Insecure!Insecure!
too!works!!!
<form action="/%E2%98%83">
Expand Down

0 comments on commit 5e0f449

Please sign in to comment.