], x.target!
end
def test_traceback_style_override
x = HtmlMarkup.new
x.html {_body?(:traceback_style => 'color:red') {boom}}
assert_match %r[ 'traceback') {boom}}
assert_match %r[\s*\s*], x.target!
end
def test_indented_text
x = HtmlMarkup.new
x.html {_div {_ 'text'}}
assert_match %r[^ \n text\n
], x.target!
end
def test_unindented_text
x = HtmlMarkup.new
x.html {_div {_! "text\n"}}
assert_match %r[^ \ntext\n
], x.target!
end
def test_declare
x = HtmlMarkup.new
x.declare! :DOCTYPE, 'html'
assert_equal %{\n}, x.target!
end
end