2004-01-28 01:09:27 -05:00
|
|
|
# -*- tab-width: 2 -*- vim: ts=2
|
|
|
|
|
2004-03-21 05:03:17 -05:00
|
|
|
require "rss-testcase"
|
|
|
|
|
2004-01-27 22:46:13 -05:00
|
|
|
require "rss/1.0"
|
2004-03-21 05:03:17 -05:00
|
|
|
|
|
|
|
module RSS
|
|
|
|
class TestParser < TestCase
|
|
|
|
|
|
|
|
def setup
|
|
|
|
@_default_parser = Parser.default_parser
|
|
|
|
end
|
|
|
|
|
|
|
|
def teardown
|
|
|
|
Parser.default_parser = @_default_parser
|
|
|
|
end
|
|
|
|
|
|
|
|
def test_RDF
|
|
|
|
assert_ns("", RDF::URI) do
|
|
|
|
Parser.parse(<<-EOR)
|
2004-01-27 22:46:13 -05:00
|
|
|
#{make_xmldecl}
|
|
|
|
<RDF/>
|
|
|
|
EOR
|
2004-03-21 05:03:17 -05:00
|
|
|
end
|
2004-01-27 22:46:13 -05:00
|
|
|
|
2004-03-21 05:03:17 -05:00
|
|
|
assert_ns("", RDF::URI) do
|
|
|
|
Parser.parse(<<-EOR)
|
2004-01-27 22:46:13 -05:00
|
|
|
#{make_xmldecl}
|
|
|
|
<RDF xmlns="hoge"/>
|
|
|
|
EOR
|
2004-03-21 05:03:17 -05:00
|
|
|
end
|
2004-01-27 22:46:13 -05:00
|
|
|
|
2004-03-21 05:03:17 -05:00
|
|
|
assert_ns("rdf", RDF::URI) do
|
|
|
|
Parser.parse(<<-EOR)
|
2004-01-27 22:46:13 -05:00
|
|
|
#{make_xmldecl}
|
|
|
|
<rdf:RDF xmlns:rdf="hoge"/>
|
|
|
|
EOR
|
2004-03-21 05:03:17 -05:00
|
|
|
end
|
2004-01-27 22:46:13 -05:00
|
|
|
|
2004-03-21 05:03:17 -05:00
|
|
|
assert_parse(<<-EOR, :missing_tag, "channel", "RDF")
|
2004-01-27 22:46:13 -05:00
|
|
|
#{make_xmldecl}
|
|
|
|
<rdf:RDF xmlns:rdf="#{RSS::RDF::URI}"/>
|
|
|
|
EOR
|
|
|
|
|
2004-03-21 05:03:17 -05:00
|
|
|
assert_parse(<<-EOR, :missing_tag, "channel", "RDF")
|
2004-01-27 22:46:13 -05:00
|
|
|
#{make_xmldecl}
|
|
|
|
<RDF xmlns="#{RSS::RDF::URI}"/>
|
|
|
|
EOR
|
|
|
|
|
2004-03-21 05:03:17 -05:00
|
|
|
assert_parse(<<-EOR, :missing_tag, "channel", "RDF")
|
2004-01-27 22:46:13 -05:00
|
|
|
#{make_xmldecl}
|
|
|
|
<RDF xmlns="#{RSS::RDF::URI}"/>
|
|
|
|
EOR
|
|
|
|
|
2004-03-21 05:03:17 -05:00
|
|
|
assert_parse(make_RDF(<<-EOR), :missing_tag, "item", "RDF")
|
2004-01-27 22:46:13 -05:00
|
|
|
#{make_channel}
|
|
|
|
EOR
|
|
|
|
|
2004-03-21 05:03:17 -05:00
|
|
|
assert_parse(make_RDF(<<-EOR), :missing_tag, "item", "RDF")
|
2004-01-27 22:46:13 -05:00
|
|
|
#{make_channel}
|
|
|
|
#{make_image}
|
|
|
|
EOR
|
|
|
|
|
2004-03-21 05:03:17 -05:00
|
|
|
assert_parse(make_RDF(<<-EOR), :missing_tag, "item", "RDF")
|
2004-01-27 22:46:13 -05:00
|
|
|
#{make_channel}
|
|
|
|
#{make_textinput}
|
|
|
|
EOR
|
|
|
|
|
2004-03-21 05:03:17 -05:00
|
|
|
assert_too_much_tag("image", "RDF") do
|
|
|
|
Parser.parse(make_RDF(<<-EOR))
|
2004-01-27 22:46:13 -05:00
|
|
|
#{make_channel}
|
|
|
|
#{make_image}
|
|
|
|
#{make_image}
|
|
|
|
#{make_item}
|
|
|
|
#{make_textinput}
|
|
|
|
EOR
|
2004-03-21 05:03:17 -05:00
|
|
|
end
|
2004-01-27 22:46:13 -05:00
|
|
|
|
2004-03-21 05:03:17 -05:00
|
|
|
assert_not_excepted_tag("image", "RDF") do
|
|
|
|
Parser.parse(make_RDF(<<-EOR))
|
2004-01-27 22:46:13 -05:00
|
|
|
#{make_channel}
|
|
|
|
#{make_item}
|
|
|
|
#{make_image}
|
|
|
|
#{make_textinput}
|
|
|
|
EOR
|
2004-03-21 05:03:17 -05:00
|
|
|
end
|
2004-01-27 22:46:13 -05:00
|
|
|
|
2004-03-21 05:03:17 -05:00
|
|
|
assert_parse(make_RDF(<<-EOR), :nothing_raised)
|
2004-01-27 22:46:13 -05:00
|
|
|
#{make_channel}
|
|
|
|
#{make_image}
|
|
|
|
#{make_item}
|
|
|
|
EOR
|
|
|
|
|
2004-03-21 05:03:17 -05:00
|
|
|
assert_parse(make_RDF(<<-EOR), :nothing_raised)
|
2004-01-27 22:46:13 -05:00
|
|
|
#{make_channel}
|
|
|
|
#{make_image}
|
|
|
|
#{make_item}
|
|
|
|
#{make_textinput}
|
|
|
|
EOR
|
|
|
|
|
2004-03-21 05:03:17 -05:00
|
|
|
1.step(15, 3) do |i|
|
|
|
|
rss = make_RDF() do
|
|
|
|
res = make_channel
|
|
|
|
i.times { res << make_item }
|
|
|
|
res
|
|
|
|
end
|
|
|
|
assert_parse(rss, :nothing_raised)
|
2004-01-27 22:46:13 -05:00
|
|
|
end
|
|
|
|
|
2004-03-21 05:03:17 -05:00
|
|
|
end
|
2004-01-27 22:46:13 -05:00
|
|
|
|
2004-03-21 05:03:17 -05:00
|
|
|
def test_channel
|
2004-01-27 22:46:13 -05:00
|
|
|
|
2004-03-21 05:03:17 -05:00
|
|
|
assert_parse(make_RDF(<<-EOR), :missing_attribute, "channel", "about")
|
2004-01-27 22:46:13 -05:00
|
|
|
<channel />
|
|
|
|
EOR
|
|
|
|
|
2004-03-21 05:03:17 -05:00
|
|
|
assert_parse(make_RDF(<<-EOR), :missing_tag, "title", "channel")
|
2004-01-27 22:46:13 -05:00
|
|
|
<channel rdf:about="http://example.com/"/>
|
|
|
|
EOR
|
|
|
|
|
2004-03-21 05:03:17 -05:00
|
|
|
assert_parse(make_RDF(<<-EOR), :missing_tag, "link", "channel")
|
2004-01-27 22:46:13 -05:00
|
|
|
<channel rdf:about="http://example.com/">
|
|
|
|
<title>hoge</title>
|
|
|
|
</channel>
|
|
|
|
EOR
|
|
|
|
|
2004-03-21 05:03:17 -05:00
|
|
|
assert_parse(make_RDF(<<EOR), :missing_tag, "description", "channel")
|
2004-01-27 22:46:13 -05:00
|
|
|
<channel rdf:about="http://example.com/">
|
|
|
|
<title>hoge</title>
|
|
|
|
<link>http://example.com/</link>
|
|
|
|
</channel>
|
|
|
|
EOR
|
|
|
|
|
2004-03-21 05:03:17 -05:00
|
|
|
assert_parse(make_RDF(<<-EOR), :missing_tag, "items", "channel")
|
2004-01-27 22:46:13 -05:00
|
|
|
<channel rdf:about="http://example.com/">
|
|
|
|
<title>hoge</title>
|
|
|
|
<link>http://example.com/</link>
|
|
|
|
<description>hogehoge</description>
|
|
|
|
</channel>
|
|
|
|
EOR
|
|
|
|
|
2004-03-21 05:03:17 -05:00
|
|
|
assert_parse(make_RDF(<<-EOR), :missing_attribute, "image", "resource")
|
2004-01-27 22:46:13 -05:00
|
|
|
<channel rdf:about="http://example.com/">
|
|
|
|
<title>hoge</title>
|
|
|
|
<link>http://example.com/</link>
|
|
|
|
<description>hogehoge</description>
|
|
|
|
<image/>
|
|
|
|
</channel>
|
|
|
|
EOR
|
|
|
|
|
2004-03-21 05:03:17 -05:00
|
|
|
assert_parse(make_RDF(<<-EOR), :missing_tag, "items", "channel")
|
2004-01-27 22:46:13 -05:00
|
|
|
<channel rdf:about="http://example.com/">
|
|
|
|
<title>hoge</title>
|
|
|
|
<link>http://example.com/</link>
|
|
|
|
<description>hogehoge</description>
|
|
|
|
<image rdf:resource="http://example.com/hoge.png" />
|
|
|
|
</channel>
|
|
|
|
EOR
|
|
|
|
|
2004-03-21 05:03:17 -05:00
|
|
|
rss = make_RDF(<<-EOR)
|
2004-01-27 22:46:13 -05:00
|
|
|
<channel rdf:about="http://example.com/">
|
|
|
|
<title>hoge</title>
|
|
|
|
<link>http://example.com/</link>
|
|
|
|
<description>hogehoge</description>
|
|
|
|
<image rdf:resource="http://example.com/hoge.png" />
|
|
|
|
<items/>
|
|
|
|
</channel>
|
|
|
|
EOR
|
|
|
|
|
2004-03-21 05:03:17 -05:00
|
|
|
assert_missing_tag("Seq", "items") do
|
|
|
|
Parser.parse(rss)
|
|
|
|
end
|
2004-01-27 22:46:13 -05:00
|
|
|
|
2004-03-21 05:03:17 -05:00
|
|
|
assert_missing_tag("item", "RDF") do
|
|
|
|
Parser.parse(rss, false).validate
|
|
|
|
end
|
2004-01-27 22:46:13 -05:00
|
|
|
|
2004-03-21 05:03:17 -05:00
|
|
|
assert_parse(make_RDF(<<-EOR), :missing_tag, "item", "RDF")
|
2004-01-27 22:46:13 -05:00
|
|
|
<channel rdf:about="http://example.com/">
|
|
|
|
<title>hoge</title>
|
|
|
|
<link>http://example.com/</link>
|
|
|
|
<description>hogehoge</description>
|
|
|
|
<image rdf:resource="http://example.com/hoge.png" />
|
|
|
|
<items>
|
|
|
|
<rdf:Seq>
|
|
|
|
</rdf:Seq>
|
|
|
|
</items>
|
|
|
|
</channel>
|
|
|
|
EOR
|
|
|
|
|
2004-03-21 05:03:17 -05:00
|
|
|
assert_parse(make_RDF(<<-EOR), :missing_attribute, "textinput", "resource")
|
2004-01-27 22:46:13 -05:00
|
|
|
<channel rdf:about="http://example.com/">
|
|
|
|
<title>hoge</title>
|
|
|
|
<link>http://example.com/</link>
|
|
|
|
<description>hogehoge</description>
|
|
|
|
<image rdf:resource="http://example.com/hoge.png" />
|
|
|
|
<items>
|
|
|
|
<rdf:Seq>
|
|
|
|
</rdf:Seq>
|
|
|
|
</items>
|
|
|
|
<textinput/>
|
|
|
|
</channel>
|
|
|
|
EOR
|
|
|
|
|
2004-03-21 05:03:17 -05:00
|
|
|
assert_parse(make_RDF(<<-EOR), :missing_tag, "item", "RDF")
|
2004-01-27 22:46:13 -05:00
|
|
|
<channel rdf:about="http://example.com/">
|
|
|
|
<title>hoge</title>
|
|
|
|
<link>http://example.com/</link>
|
|
|
|
<description>hogehoge</description>
|
|
|
|
<image rdf:resource="http://example.com/hoge.png" />
|
|
|
|
<items>
|
|
|
|
<rdf:Seq>
|
|
|
|
</rdf:Seq>
|
|
|
|
</items>
|
|
|
|
<textinput rdf:resource="http://example.com/search" />
|
|
|
|
</channel>
|
|
|
|
EOR
|
|
|
|
|
2004-03-21 05:03:17 -05:00
|
|
|
end
|
2004-01-27 22:46:13 -05:00
|
|
|
|
2004-03-21 05:03:17 -05:00
|
|
|
def test_image
|
2004-01-27 22:46:13 -05:00
|
|
|
|
2004-03-21 05:03:17 -05:00
|
|
|
assert_parse(make_RDF(<<-EOR), :missing_attribute, "image", "about")
|
2004-01-27 22:46:13 -05:00
|
|
|
#{make_channel}
|
|
|
|
<image>
|
|
|
|
</image>
|
|
|
|
EOR
|
|
|
|
|
2004-03-21 05:03:17 -05:00
|
|
|
assert_parse(make_RDF(<<-EOR), :missing_tag, "title", "image")
|
2004-01-27 22:46:13 -05:00
|
|
|
#{make_channel}
|
|
|
|
<image rdf:about="http://example.com/hoge.png">
|
|
|
|
</image>
|
|
|
|
EOR
|
|
|
|
|
2004-03-21 05:03:17 -05:00
|
|
|
assert_parse(make_RDF(<<-EOR), :missing_tag, "url", "image")
|
2004-01-27 22:46:13 -05:00
|
|
|
#{make_channel}
|
|
|
|
<image rdf:about="http://example.com/hoge.png">
|
|
|
|
<title>hoge</title>
|
|
|
|
</image>
|
|
|
|
EOR
|
|
|
|
|
2004-03-21 05:03:17 -05:00
|
|
|
assert_parse(make_RDF(<<-EOR), :missing_tag, "link", "image")
|
2004-01-27 22:46:13 -05:00
|
|
|
#{make_channel}
|
|
|
|
<image rdf:about="http://example.com/hoge.png">
|
|
|
|
<title>hoge</title>
|
|
|
|
<url>http://example.com/hoge.png</url>
|
|
|
|
</image>
|
|
|
|
EOR
|
|
|
|
|
2004-03-21 05:03:17 -05:00
|
|
|
rss = make_RDF(<<-EOR)
|
2004-01-27 22:46:13 -05:00
|
|
|
#{make_channel}
|
|
|
|
<image rdf:about="http://example.com/hoge.png">
|
|
|
|
<title>hoge</title>
|
|
|
|
<link>http://example.com/</link>
|
|
|
|
<url>http://example.com/hoge.png</url>
|
|
|
|
</image>
|
|
|
|
EOR
|
|
|
|
|
2004-03-21 05:03:17 -05:00
|
|
|
assert_missing_tag("url", "image") do
|
|
|
|
Parser.parse(rss)
|
|
|
|
end
|
2004-01-27 22:46:13 -05:00
|
|
|
|
2004-03-21 05:03:17 -05:00
|
|
|
assert_missing_tag("item", "RDF") do
|
|
|
|
Parser.parse(rss, false).validate
|
|
|
|
end
|
2004-01-27 22:46:13 -05:00
|
|
|
|
2004-03-21 05:03:17 -05:00
|
|
|
assert_parse(make_RDF(<<-EOR), :missing_tag, "item", "RDF")
|
2004-01-27 22:46:13 -05:00
|
|
|
#{make_channel}
|
|
|
|
<image rdf:about="http://example.com/hoge.png">
|
|
|
|
<title>hoge</title>
|
|
|
|
<url>http://example.com/hoge.png</url>
|
|
|
|
<link>http://example.com/</link>
|
|
|
|
</image>
|
|
|
|
EOR
|
|
|
|
|
2004-03-21 05:03:17 -05:00
|
|
|
end
|
2004-01-27 22:46:13 -05:00
|
|
|
|
2004-03-21 05:03:17 -05:00
|
|
|
def test_item
|
2004-01-27 22:46:13 -05:00
|
|
|
|
2004-03-21 05:03:17 -05:00
|
|
|
assert_parse(make_RDF(<<-EOR), :missing_attribute, "item", "about")
|
2004-01-27 22:46:13 -05:00
|
|
|
#{make_channel}
|
|
|
|
#{make_image}
|
|
|
|
<item>
|
|
|
|
</item>
|
|
|
|
EOR
|
|
|
|
|
2004-03-21 05:03:17 -05:00
|
|
|
assert_parse(make_RDF(<<-EOR), :missing_tag, "title", "item")
|
2004-01-27 22:46:13 -05:00
|
|
|
#{make_channel}
|
|
|
|
#{make_image}
|
|
|
|
<item rdf:about="http://example.com/hoge.html">
|
|
|
|
</item>
|
|
|
|
EOR
|
|
|
|
|
2004-03-21 05:03:17 -05:00
|
|
|
assert_parse(make_RDF(<<-EOR), :missing_tag, "link", "item")
|
2004-01-27 22:46:13 -05:00
|
|
|
#{make_channel}
|
|
|
|
#{make_image}
|
|
|
|
<item rdf:about="http://example.com/hoge.html">
|
|
|
|
<title>hoge</title>
|
|
|
|
</item>
|
|
|
|
EOR
|
|
|
|
|
2004-03-21 05:03:17 -05:00
|
|
|
assert_too_much_tag("title", "item") do
|
|
|
|
Parser.parse(make_RDF(<<-EOR))
|
2004-01-27 22:46:13 -05:00
|
|
|
#{make_channel}
|
|
|
|
#{make_image}
|
|
|
|
<item rdf:about="http://example.com/hoge.html">
|
|
|
|
<title>hoge</title>
|
|
|
|
<title>hoge</title>
|
|
|
|
<link>http://example.com/hoge.html</link>
|
|
|
|
</item>
|
|
|
|
EOR
|
2004-03-21 05:03:17 -05:00
|
|
|
end
|
2004-01-27 22:46:13 -05:00
|
|
|
|
2004-03-21 05:03:17 -05:00
|
|
|
assert_parse(make_RDF(<<-EOR), :nothing_raised)
|
2004-01-27 22:46:13 -05:00
|
|
|
#{make_channel}
|
|
|
|
#{make_image}
|
|
|
|
<item rdf:about="http://example.com/hoge.html">
|
|
|
|
<title>hoge</title>
|
|
|
|
<link>http://example.com/hoge.html</link>
|
|
|
|
</item>
|
|
|
|
EOR
|
|
|
|
|
2004-03-21 05:03:17 -05:00
|
|
|
assert_parse(make_RDF(<<-EOR), :nothing_raised)
|
2004-01-27 22:46:13 -05:00
|
|
|
#{make_channel}
|
|
|
|
#{make_image}
|
|
|
|
<item rdf:about="http://example.com/hoge.html">
|
|
|
|
<title>hoge</title>
|
|
|
|
<link>http://example.com/hoge.html</link>
|
|
|
|
<description>hogehoge</description>
|
|
|
|
</item>
|
|
|
|
EOR
|
|
|
|
|
2004-03-21 05:03:17 -05:00
|
|
|
end
|
2004-01-27 22:46:13 -05:00
|
|
|
|
2004-03-21 05:03:17 -05:00
|
|
|
def test_textinput
|
2004-01-27 22:46:13 -05:00
|
|
|
|
2004-03-21 05:03:17 -05:00
|
|
|
assert_parse(make_RDF(<<-EOR), :missing_attribute, "textinput", "about")
|
2004-01-27 22:46:13 -05:00
|
|
|
#{make_channel}
|
|
|
|
#{make_image}
|
|
|
|
#{make_item}
|
|
|
|
<textinput>
|
|
|
|
</textinput>
|
|
|
|
EOR
|
|
|
|
|
2004-03-21 05:03:17 -05:00
|
|
|
assert_parse(make_RDF(<<-EOR), :missing_tag, "title", "textinput")
|
2004-01-27 22:46:13 -05:00
|
|
|
#{make_channel}
|
|
|
|
#{make_image}
|
|
|
|
#{make_item}
|
|
|
|
<textinput rdf:about="http://example.com/search.html">
|
|
|
|
</textinput>
|
|
|
|
EOR
|
|
|
|
|
2004-03-21 05:03:17 -05:00
|
|
|
assert_parse(make_RDF(<<-EOR), :missing_tag, "description", "textinput")
|
2004-01-27 22:46:13 -05:00
|
|
|
#{make_channel}
|
|
|
|
#{make_image}
|
|
|
|
#{make_item}
|
|
|
|
<textinput rdf:about="http://example.com/search.html">
|
|
|
|
<title>hoge</title>
|
|
|
|
</textinput>
|
|
|
|
EOR
|
|
|
|
|
2004-03-21 05:03:17 -05:00
|
|
|
assert_too_much_tag("title", "textinput") do
|
|
|
|
Parser.parse(make_RDF(<<-EOR))
|
2004-01-27 22:46:13 -05:00
|
|
|
#{make_channel}
|
|
|
|
#{make_image}
|
|
|
|
#{make_item}
|
|
|
|
<textinput rdf:about="http://example.com/search.html">
|
|
|
|
<title>hoge</title>
|
|
|
|
<title>hoge</title>
|
|
|
|
<description>hogehoge</description>
|
|
|
|
</textinput>
|
|
|
|
EOR
|
2004-03-21 05:03:17 -05:00
|
|
|
end
|
2004-01-27 22:46:13 -05:00
|
|
|
|
2004-03-21 05:03:17 -05:00
|
|
|
assert_parse(make_RDF(<<-EOR), :missing_tag, "name", "textinput")
|
2004-01-27 22:46:13 -05:00
|
|
|
#{make_channel}
|
|
|
|
#{make_image}
|
|
|
|
#{make_item}
|
|
|
|
<textinput rdf:about="http://example.com/search.html">
|
|
|
|
<title>hoge</title>
|
|
|
|
<description>hogehoge</description>
|
|
|
|
</textinput>
|
|
|
|
EOR
|
|
|
|
|
2004-03-21 05:03:17 -05:00
|
|
|
assert_parse(make_RDF(<<-EOR), :missing_tag, "link", "textinput")
|
2004-01-27 22:46:13 -05:00
|
|
|
#{make_channel}
|
|
|
|
#{make_image}
|
|
|
|
#{make_item}
|
|
|
|
<textinput rdf:about="http://example.com/search.html">
|
|
|
|
<title>hoge</title>
|
|
|
|
<description>hogehoge</description>
|
|
|
|
<name>key</name>
|
|
|
|
</textinput>
|
|
|
|
EOR
|
|
|
|
|
2004-03-21 05:03:17 -05:00
|
|
|
assert_parse(make_RDF(<<-EOR), :nothing_raised)
|
2004-01-27 22:46:13 -05:00
|
|
|
#{make_channel}
|
|
|
|
#{make_image}
|
|
|
|
#{make_item}
|
|
|
|
<textinput rdf:about="http://example.com/search.html">
|
|
|
|
<title>hoge</title>
|
|
|
|
<description>hogehoge</description>
|
|
|
|
<name>key</name>
|
|
|
|
<link>http://example.com/search.html</link>
|
|
|
|
</textinput>
|
|
|
|
EOR
|
|
|
|
|
2004-03-21 05:03:17 -05:00
|
|
|
end
|
2004-01-27 22:46:13 -05:00
|
|
|
|
2004-03-21 05:03:17 -05:00
|
|
|
def test_ignore
|
2004-01-27 22:46:13 -05:00
|
|
|
|
2004-03-21 05:03:17 -05:00
|
|
|
rss = make_RDF(<<-EOR)
|
2004-01-27 22:46:13 -05:00
|
|
|
#{make_channel}
|
|
|
|
#{make_item}
|
|
|
|
<a/>
|
|
|
|
EOR
|
|
|
|
|
2004-03-21 05:03:17 -05:00
|
|
|
assert_parse(rss, :nothing_raised)
|
|
|
|
|
|
|
|
assert_not_excepted_tag("a", "RDF") do
|
|
|
|
Parser.parse(rss, true, false)
|
|
|
|
end
|
2004-01-27 22:46:13 -05:00
|
|
|
|
|
|
|
end
|
|
|
|
|
2004-03-21 05:03:17 -05:00
|
|
|
def test_default_parser
|
|
|
|
assert_nothing_raised() do
|
|
|
|
Parser.default_parser = RSS::AVAILABLE_PARSERS.first
|
|
|
|
end
|
2004-01-27 22:46:13 -05:00
|
|
|
|
2004-03-21 05:03:17 -05:00
|
|
|
assert_raise(RSS::NotValidXMLParser) do
|
|
|
|
Parser.default_parser = RSS::Parser
|
|
|
|
end
|
2004-01-31 11:10:53 -05:00
|
|
|
end
|
|
|
|
|
|
|
|
end
|
2004-01-27 22:46:13 -05:00
|
|
|
end
|
2004-03-21 05:03:17 -05:00
|
|
|
|