diff options
author | kou <kou@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2005-11-23 09:24:17 +0000 |
---|---|---|
committer | kou <kou@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2005-11-23 09:24:17 +0000 |
commit | 4ef7ec62cab725ad1dea2be9a26ca0f9fd195729 (patch) | |
tree | 2433c8b783f7af942de18409be11a6fded9852c9 /test/rss/test_setup_maker_2.0.rb | |
parent | f988ceb53b731f7465f8ace09c76cd69e9abef22 (diff) | |
download | ruby-4ef7ec62cab725ad1dea2be9a26ca0f9fd195729.tar.gz |
* lib/rss/maker/taxonomy.rb: implemented taxonomy module for RSS
Maker.
* lib/rss/taxonomy.rb: supported RSS Maker.
* lib/rss/maker.rb: added taxonomy module support.
* lib/rss/rss.rb: adjusted to other element API.
* lib/rss/1.0.rb: adjusted to other element API but backward
compatibility is reserved.
* lib/rss/0.9.rb: ditto.
* test/rss/test_maker_taxo.rb: added test case for taxonomy module
for RSS Maker.
* test/rss/test_setup_maker_1.0.rb: added tests for taxo:topic.
* test/rss/test_setup_maker_1.0.rb: added backward compatibility
test.
* test/rss/test_setup_maker_0.9.rb: ditto.
* test/rss/test_setup_maker_2.0.rb: ditto.
* test/rss/rss-testcase.rb: added convenience method for setting
up taxo:topic.
* test/rss/rss-assertions.rb: added assertion for taxo:topic.
* sample/rss/blend.rb: followed new API.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9596 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/rss/test_setup_maker_2.0.rb')
-rw-r--r-- | test/rss/test_setup_maker_2.0.rb | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/test/rss/test_setup_maker_2.0.rb b/test/rss/test_setup_maker_2.0.rb index f28f837e43..6bf27d4682 100644 --- a/test/rss/test_setup_maker_2.0.rb +++ b/test/rss/test_setup_maker_2.0.rb @@ -162,7 +162,7 @@ module RSS assert_equal(link, textInput.link) end - def test_setup_maker_items + def test_setup_maker_items(for_backward_compatibility=false) title = "TITLE" link = "http://hoge.com/" description = "text hoge fuga" @@ -217,7 +217,11 @@ module RSS rss.channel.setup_maker(maker) rss.items.each do |item| - item.setup_maker(maker) + if for_backward_compatibility + item.setup_maker(maker) + else + item.setup_maker(maker.items) + end end end @@ -247,6 +251,10 @@ module RSS end + def test_setup_maker_items_backward_compatibility + test_setup_maker_items(true) + end + def test_setup_maker encoding = "EUC-JP" standalone = true |