Skip to content

Commit

Permalink
better tag helper tests
Browse files Browse the repository at this point in the history
  • Loading branch information
kraih committed Nov 28, 2012
1 parent 725cbf4 commit 6162db5
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions t/mojolicious/tag_helper_lite_app.t
Expand Up @@ -361,13 +361,15 @@ EOF
# POST /no_snowman (POST form)
$t->post_ok('/no_snowman')->status_is(200)->content_is(<<'EOF');
<form action="/%E2%98%83" method="POST">
<textarea cols="40" name="bar"></textarea>
<input type="submit" value="whatever" />
</form>
EOF

# POST /no_snowman (PATCH form)
$t->post_ok('/no_snowman?foo=1')->status_is(200)->content_is(<<'EOF');
<form action="/%E2%98%83" method="PATCH">
<textarea cols="40" name="bar"></textarea>
<input type="submit" value="whatever" />
</form>
EOF
Expand Down Expand Up @@ -481,5 +483,6 @@ __DATA__
@@ no_snowman.html.ep
% my @attrs = param('foo') ? (method => 'PATCH') : ();
%= form_for 'snowman', @attrs => begin
%= text_area 'bar', cols => 40
%= submit_button 'whatever'
%= end

0 comments on commit 6162db5

Please sign in to comment.