Created
November 17, 2009 21:06
-
-
Save cpetschnig/237262 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# in file helper_test.rb: | |
def haml_tag_helper_method | |
haml_buffer.options[:escape_html] = true | |
haml_tag :div do | |
haml_tag :span, 'foo' | |
end | |
end | |
def test_haml_tag_with_block | |
assert_equal("<div>\n <span>foo</span>\n</div>\n", render("- haml_tag_helper_method", :scope_object => self)) | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment