summaryrefslogtreecommitdiffstats
path: root/test/rss
diff options
context:
space:
mode:
authorkou <kou@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-05-16 09:25:59 +0000
committerkou <kou@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-05-16 09:25:59 +0000
commit9b007934ed5c9174a6ddc558a989e08ab8569d0a (patch)
tree34ba0af53c16300919bf0a39ca13423c045df3cb /test/rss
parentb1d2fae232dd11135ca737087896e91873faaf09 (diff)
downloadruby-9b007934ed5c9174a6ddc558a989e08ab8569d0a.tar.gz
ruby-9b007934ed5c9174a6ddc558a989e08ab8569d0a.tar.xz
ruby-9b007934ed5c9174a6ddc558a989e08ab8569d0a.zip
* 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/trunk@23451 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/rss')
-rw-r--r--test/rss/test_parser_1.0.rb16
1 files changed, 16 insertions, 0 deletions
diff --git a/test/rss/test_parser_1.0.rb b/test/rss/test_parser_1.0.rb
index ddc82b157..dca10e6f4 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}
+ <foaf:Image rdf:about="http://example.com/myself.png">
+ <dc:title>Myself</dc:title>
+ <dc:link>http://example.com/</dc:link>
+ </foaf:Image>
+ EOR
+ end
end
end