diff options
author | kou <kou@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2004-03-21 09:20:47 +0000 |
---|---|---|
committer | kou <kou@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2004-03-21 09:20:47 +0000 |
commit | 7ead69e5b3a2b09878037f11a7dda59ae402ccbf (patch) | |
tree | f7a422e5983f2c475c831e5d70987437eb77fa69 /test/rss/test_1.0.rb | |
parent | 2639d6dc809a3f78c96543c839d72d05e6e90ca7 (diff) | |
download | ruby-7ead69e5b3a2b09878037f11a7dda59ae402ccbf.tar.gz |
* test/rss/test_xml-stylesheet.rb: added tests for xml-stylesheet.
* lib/rss/xml-stylesheet.rb: added xml-stylesheet parsing
function.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5989 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/rss/test_1.0.rb')
-rw-r--r-- | test/rss/test_1.0.rb | 22 |
1 files changed, 21 insertions, 1 deletions
diff --git a/test/rss/test_1.0.rb b/test/rss/test_1.0.rb index b48e765d08..9f8cd2610d 100644 --- a/test/rss/test_1.0.rb +++ b/test/rss/test_1.0.rb @@ -38,8 +38,28 @@ class TestCore < Test::Unit::TestCase end - def test_channel + def test_not_displayed_xml_stylesheets + rdf = RDF.new() + plain_rdf = rdf.to_s + 3.times do + rdf.xml_stylesheets.push(XMLStyleSheet.new) + assert_equal(plain_rdf, rdf.to_s) + end + end + def test_xml_stylesheets + [ + [{:href => "a.xsl", :type => "text/xsl"}], + [ + {:href => "a.xsl", :type => "text/xsl"}, + {:href => "a.css", :type => "text/css"}, + ], + ].each do |attrs_ary| + assert_xml_stylesheet_pis(attrs_ary) + end + end + + def test_channel about = "http://hoge.com" title = "fugafuga" link = "http://hoge.com" |