summaryrefslogtreecommitdiff
path: root/test/rss/rss-testcase.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/rss/rss-testcase.rb')
-rw-r--r--test/rss/rss-testcase.rb9
1 files changed, 8 insertions, 1 deletions
diff --git a/test/rss/rss-testcase.rb b/test/rss/rss-testcase.rb
index baac597c00..0fd9b5263f 100644
--- a/test/rss/rss-testcase.rb
+++ b/test/rss/rss-testcase.rb
@@ -332,7 +332,14 @@ EOA
"<#{h elem_name} #{attrs_str}>\n#{contents_str}\n</#{h elem_name}>"
end
-
+
+ def xmlns_container(xmlns_decls, content)
+ attributes = xmlns_decls.collect do |prefix, uri|
+ "xmlns:#{h prefix}=\"#{h uri}\""
+ end.join(" ")
+ "<dummy #{attributes}>#{content}</dummy>"
+ end
+
private
def setup_rss10(rdf)
assert_equal("", rdf.to_s)