# File test/core_test.rb, line 713 def test_element_parse_stream s = Source.new( "<a>some text</a>" ) l = Listener.new class << l def tag_start name, attributes raise "Didn't find proper tag name" unless 'a'==name end end Element::parse_stream s, l end