# File lib/maruku/tests/tests.rb, line 27 def Maruku.failed(test, doc, s) raise "Test failed: #{s}\n*****\n#{test}\n*****\n"+ "#{doc.inspect}\n*****\n{doc.to_html}" end
# File lib/maruku/tests/tests.rb, line 32 def Maruku.metaTests ref = {:id => 'id1', :class => ['class1','class2'], :style=> 'Style is : important = for all } things'} tests = MetaTests.split('***') for test in tests #puts "Test: #{test.inspect}" doc = Maruku.new(test) doc.children.size == 1 || failed(test, doc, "children != 1") h = doc.children[0] h.node_type==:header || failed(test, doc, "child not header") # puts doc.inspect # puts doc.to_html end end
Generated with the Darkfish Rdoc Generator 2.