Skip to content

Commit

Permalink
another helper test
Browse files Browse the repository at this point in the history
  • Loading branch information
kraih committed Jan 2, 2014
1 parent b671ef5 commit c56a12a
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 6 deletions.
2 changes: 2 additions & 0 deletions Changes
@@ -1,4 +1,6 @@

4.66 2014-01-03

4.65 2014-01-02
- Deprecated use of hash references for optgroup generation with
select_field helper in favor of Mojo::Collection objects.
Expand Down
2 changes: 1 addition & 1 deletion lib/Mojolicious.pm
Expand Up @@ -43,7 +43,7 @@ has types => sub { Mojolicious::Types->new };
has validator => sub { Mojolicious::Validator->new };

our $CODENAME = 'Top Hat';
our $VERSION = '4.65';
our $VERSION = '4.66';

sub AUTOLOAD {
my $self = shift;
Expand Down
10 changes: 5 additions & 5 deletions t/mojolicious/layouted_lite_app.t
Expand Up @@ -190,7 +190,7 @@ $t->get_ok('/plugin_with_template')->status_is(200)
# Nested partial templates
$t->get_ok('/nested-includes')->status_is(200)
->header_is(Server => 'Mojolicious (Perl)')
->content_is("layouted Nested Hello\n[\n 1,\n 2\n]\nthere<br>!\n\n\n\n");
->content_is("layouted Nested <Hello>\n[\n 1,\n 2\n]\nthere<br>!\n\n\n\n");

# Partial template with localized stash values
$t->get_ok('/localized/include')->status_is(200)
Expand All @@ -206,17 +206,17 @@ $t->get_ok('/plain/reverse')->status_is(200)
# Layout in render call
$t->get_ok('/outerlayout')->status_is(200)
->header_is(Server => 'Mojolicious (Perl)')
->content_is("layouted Hello\n[\n 1,\n 2\n]\nthere<br>!\n\n\n");
->content_is("layouted <Hello>\n[\n 1,\n 2\n]\nthere<br>!\n\n\n");

# Extends in render call
$t->get_ok('/outerextends')->status_is(200)
->header_is(Server => 'Mojolicious (Perl)')
->content_is("layouted Hello\n[\n 1,\n 2\n]\nthere<br>!\n\n\n");
->content_is("layouted <Hello>\n[\n 1,\n 2\n]\nthere<br>!\n\n\n");

# Layout in route
$t->get_ok('/outerlayouttwo')->status_is(200)
->header_is(Server => 'Mojolicious (Perl)')
->content_is("layouted Hello\n[\n 1,\n 2\n]\nthere<br>!\n\n\n");
->content_is("layouted <Hello>\n[\n 1,\n 2\n]\nthere<br>!\n\n\n");

# Partial template with layout
$t->get_ok('/outerinnerlayout')->status_is(200)
Expand Down Expand Up @@ -340,7 +340,7 @@ localized1 <%= content %>
localized2 <%= content %>
@@ outerlayout.html.ep
Hello
%= c(qw(> o l l e H <))->reverse->join
<%= $self->render('outermenu', partial => 1) %>
@@ outermenu.html.ep
Expand Down

0 comments on commit c56a12a

Please sign in to comment.