class TestWabisabiXmlGeneratorModule
Public Instance Methods
ok(e, s)
click to toggle source
# File vendor/qwik/lib/qwik/wabisabi-generator.rb, line 221 def ok(e, s) assert_equal e, s.rb_format_xml(-1, -1) end
test_generator_module()
click to toggle source
# File vendor/qwik/lib/qwik/wabisabi-generator.rb, line 225 def test_generator_module ok("<b/>", b) ok("<b/>", b{}) ok("<b>t</b>", b{'t'}) ok("<div><b>t</b></div>", div{b{'t'}}) ok("<p><b>b</b></p>", p{b{'b'}}) ok("<p>t<p>b</p>t</p>", p{['t', p{'b'}, 't']}) ok("<a href=\"u\">t</a>", a(:href=>'u'){'t'}) end