Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # from tag_helper_test.rb
- # now:
- # TAG TODO: Move this into a real template
- def test_content_tag_nested_in_content_tag_in_erb
- buffer = content_tag("p") { concat content_tag("b", "Hello") }
- assert_equal '<p><b>Hello</b></p>', buffer
- end
- # better:
- # TAG TODO: Move this into a real template
- def test_content_tag_nested_in_content_tag_in_erb
- buffer = in_view do content_tag("p") { concat content_tag("b", "Hello") } end
- assert_equal '<p><b>Hello</b></p>', buffer
- end
Add Comment
Please, Sign In to add comment