diff options
| author | kou <kou@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-05-16 10:48:53 +0000 |
|---|---|---|
| committer | kou <kou@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-05-16 10:48:53 +0000 |
| commit | 0b5294ba036862ddfafa9cfab59e34577a8b7345 (patch) | |
| tree | 29cb8e8c87e579348754d677e4e7832a903bcdf5 /test | |
| parent | 6a5794bd7cd44b897da117d24ef411190f7fe43a (diff) | |
merge r23451.
* 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: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@23464 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test')
| -rw-r--r-- | test/rss/test_parser_1.0.rb | 16 |
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 216881b767..fc8f7dc08c 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 |
