From d14c37da3d5f03dc7ace71276690ba3cc83b6fa7 Mon Sep 17 00:00:00 2001 From: yugui Date: Fri, 22 May 2009 09:49:01 +0000 Subject: merges r23451 from trunk into ruby_1_9_1. -- * lib/rss/parser.rb, test/test_parser_1.0.rb: fix foaf:Image element causes parse error even if ignore_unknown_element mode. git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_9_1@23532 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- test/rss/test_parser_1.0.rb | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'test/rss') diff --git a/test/rss/test_parser_1.0.rb b/test/rss/test_parser_1.0.rb index 216881b76..fc8f7dc08 100644 --- a/test/rss/test_parser_1.0.rb +++ b/test/rss/test_parser_1.0.rb @@ -507,6 +507,22 @@ EOR #{make_image} EOR end + + def test_unknown_case_insensitive_duplicated_element + xmlns = { + "foaf" => "http://xmlns.com/foaf/0.1/", + "dc" => "http://purl.org/dc/elements/1.1/", + } + assert_parse(make_RDF(<<-EOR, xmlns), :nothing_raised) + #{make_channel} + #{make_item} + #{make_image} + + Myself + http://example.com/ + + EOR + end end end -- cgit