Skip to content

Commit

Permalink
more label_for tests
Browse files Browse the repository at this point in the history
  • Loading branch information
kraih committed Oct 3, 2013
1 parent e931641 commit f3ffc55
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion t/mojolicious/tag_helper_lite_app.t
Expand Up @@ -117,7 +117,9 @@ $t->get_ok('/basicform')->status_is(200)->content_is(<<EOF);
<form action="/links">
<label for="foo">&lt;Foo&gt;</label>
<input name="foo" type="text" value="bar" />
<input class="test" name="bar" type="text" value="baz" />
<label for="bar">
Bar<br>
</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 @@ -471,6 +473,9 @@ __DATA__
%= form_for links => begin
%= label_for foo => '<Foo>'
%= text_field foo => 'bar'
%= label_for bar => begin
Bar<br>
% end
%= text_field bar => 'baz', class => 'test'
%= text_field yada => undef
%= input_tag baz => 'yada', class => 'tset'
Expand Down

0 comments on commit f3ffc55

Please sign in to comment.