Skip to content

Commit

Permalink
better config plugin tests
Browse files Browse the repository at this point in the history
  • Loading branch information
kraih committed May 5, 2012
1 parent 7d20c86 commit 275056c
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 9 deletions.
12 changes: 6 additions & 6 deletions t/mojolicious/embedded_lite_app.t
Expand Up @@ -192,7 +192,7 @@ $t->get_ok('/just/works/too')->status_is(200)->content_is("It just works!\n");
$t->get_ok('/x/1/')->status_is(200)->content_is(<<'EOF');
works ♥!Insecure!Insecure!
too!works!!!
too!works!!!Mojolicious::Plugin::Config::Sandbox
<form action="/x/1/%E2%98%83">
<input type="submit" value="☃" />
</form>
Expand All @@ -216,7 +216,7 @@ $t->get_ok('/x/1/url/☃')->status_is(200)
$t->get_ok('/x/♥/')->status_is(200)->content_is(<<'EOF');
works ♥!Insecure!Insecure!
too!works!!!
too!works!!!Mojolicious::Plugin::Config::Sandbox
<form action="/x/%E2%99%A5/%E2%98%83">
<input type="submit" value="☃" />
</form>
Expand Down Expand Up @@ -250,7 +250,7 @@ $t->get_ok('/' => {Host => 'mojolicious.org'})->status_is(200)
->content_is(<<'EOF');
works ♥!Insecure!Insecure!
too!works!!!
too!works!!!Mojolicious::Plugin::Config::Sandbox
<form action="/%E2%98%83">
<input type="submit" value="☃" />
</form>
Expand All @@ -265,7 +265,7 @@ $t->get_ok('/' => {Host => 'mojolicio.us'})->status_is(200)
->content_is(<<'EOF');
works ♥!Insecure!Insecure!
too!works!!!
too!works!!!Mojolicious::Plugin::Config::Sandbox
<form action="/%E2%98%83">
<input type="submit" value="☃" />
</form>
Expand All @@ -279,7 +279,7 @@ $t->get_ok('/host' => {Host => 'mojolicio.us'})->status_is(200)
$t->get_ok('/' => {Host => 'kraih.com'})->status_is(200)->content_is(<<'EOF');
works ♥!Insecure!Insecure!
too!works!!!
too!works!!!Mojolicious::Plugin::Config::Sandbox
<form action="/%E2%98%83">
<input type="submit" value="☃" />
</form>
Expand All @@ -302,7 +302,7 @@ $t->get_ok('/♥/123/' => {Host => 'foo-bar.de'})->status_is(200)
->content_is(<<'EOF');
works ♥!Insecure!Insecure!
too!works!!!
too!works!!!Mojolicious::Plugin::Config::Sandbox
<form action="/%E2%99%A5/123/%E2%98%83">
<input type="submit" value="☃" />
</form>
Expand Down
2 changes: 1 addition & 1 deletion t/mojolicious/external/myapp.conf
@@ -1,3 +1,3 @@
use utf8;
app->defaults(also => 'works!!!');
app->defaults(also => 'works!!!', in => __PACKAGE__);
{just => "works ♥!"};
2 changes: 1 addition & 1 deletion t/mojolicious/external/templates/index.html.ep
@@ -1,5 +1,5 @@
%= include 'menubar'
<%= $config->{works} . stash('also') %>
<%= $config->{works} . stash('also') . stash('in') %>
%= form_for '/☃' => begin
%= submit_button '☃'
%= end
2 changes: 1 addition & 1 deletion t/mojolicious/external_lite_app.t
Expand Up @@ -23,7 +23,7 @@ my $t = Test::Mojo->new;
$t->get_ok('/')->status_is(200)->content_is(<<'EOF');
works ♥!Insecure!Insecure!
too!works!!!
too!works!!!Mojolicious::Plugin::Config::Sandbox
<form action="/%E2%98%83">
<input type="submit" value="☃" />
</form>
Expand Down

0 comments on commit 275056c

Please sign in to comment.