Skip to content

Commit

Permalink
a few more tests for content helpers
Browse files Browse the repository at this point in the history
  • Loading branch information
kraih committed Mar 3, 2015
1 parent c2466e3 commit d15cb5c
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions t/mojolicious/layouted_lite_app.t
Expand Up @@ -239,7 +239,7 @@ $t->get_ok('/content_for')->status_is(200)
->content_is("DefaultThis\n\nseems\nto\nHello world!\n\nwork!\n\n");
$t->get_ok('/content_with')->status_is(200)
->header_is(Server => 'Mojolicious (Perl)')
->content_is("Default\n\nSomething else!\n\n\nHello world!\n\n");
->content_is("Default\n\nSomething <b>else</b>!\n\n\n<br>Hello world!\n\n");

# Inline template
$t->get_ok('/inline')->status_is(200)
Expand Down Expand Up @@ -406,12 +406,13 @@ work!
@@ content_with.html.ep
<% content first => begin %>Something<% end %>
<% content_for first => begin %> else!<% end %>
<% content_for first => begin %> <b>else<% end %>
% content_for first => '</b>!';
%= content_with 'first'
% content_with first => '';
%= content_with 'first'
<% content second => begin %>world<% end %>
<%= content_with second => begin %>Hello <%= content 'second' %>!<% end %>
<%= content_with second => begin %><br>Hello <%= content 'second' %>!<% end %>
% content_with 'second'
@@ layouts/variants.txt.ep
Expand Down

0 comments on commit d15cb5c

Please sign in to comment.