Skip to content

Commit

Permalink
better label_for test
Browse files Browse the repository at this point in the history
  • Loading branch information
kraih committed Oct 3, 2013
1 parent f3ffc55 commit 2c5b3c5
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions t/mojolicious/tag_helper_lite_app.t
Expand Up @@ -119,7 +119,8 @@ $t->get_ok('/basicform')->status_is(200)->content_is(<<EOF);
<input name="foo" type="text" value="bar" />
<label for="bar">
Bar<br>
</label> <input class="test" name="bar" type="text" value="baz" />
</label>
<input class="test" name="bar" type="text" value="baz" />
<input name="yada" type="text" value="" />
<input class="tset" name="baz" value="yada" />
<input type="submit" value="Ok" />
Expand Down Expand Up @@ -475,7 +476,7 @@ __DATA__
%= text_field foo => 'bar'
%= label_for bar => begin
Bar<br>
% end
%= end
%= text_field bar => 'baz', class => 'test'
%= text_field yada => undef
%= input_tag baz => 'yada', class => 'tset'
Expand Down

0 comments on commit 2c5b3c5

Please sign in to comment.