Permalink
Browse files

add test coverage showing fix for <% fields_for %>

  • Loading branch information...
1 parent 960882f commit a07d62ac59e8f7606546071d78545636affcf027 @willbryant committed Oct 17, 2011
Showing with 5 additions and 0 deletions.
  1. +5 −0 actionpack/test/template/erb/tag_helper_test.rb
@@ -29,5 +29,10 @@ class TagHelperTest < BlockTestCase
expected_output = "<fieldset><legend>foo</legend>hello</fieldset>"
assert_equal expected_output, render_content("field_set_tag('foo')", "<%= 'hello' %>")
end
+
+ test "percent equals works with fields_for blocks" do
+ expected_output = "hello"
+ assert_equal expected_output, render_content("fields_for(:foo)", "<%= 'hello' %>")
+ end
end
end

0 comments on commit a07d62a

Please sign in to comment.