Sha256: 67a04611c8008f820c265eea303ad3da94f0fcff653f1bc7c5bf366069a1c9c6
Contents?: true
Size: 474 Bytes
Versions: 79
Compression:
Stored size: 474 Bytes
Contents
require 'test_helper' describe Crack::XML do it "default to REXMLParser" do Crack::XML.parser.must_equal Crack::REXMLParser end describe "with a custom Parser" do class CustomParser def self.parse(xml) xml end end before do Crack::XML.parser = CustomParser end it "use the custom Parser" do Crack::XML.parse("<xml/>").must_equal "<xml/>" end after do Crack::XML.parser = nil end end end
Version data entries
79 entries across 71 versions & 13 rubygems