summaryrefslogtreecommitdiff
path: root/test/rss/test_maker_content.rb
diff options
context:
space:
mode:
authorkou <kou@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-11-30 12:56:33 +0000
committerkou <kou@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-11-30 12:56:33 +0000
commitd731c29b0662e891192a317506bdbccc3c0819a9 (patch)
treec8db586c7c9a7697a9c85ef3c4f4597ff3f10891 /test/rss/test_maker_content.rb
parenta57d0b0926870d9cfb85e6bd325e084963661de1 (diff)
* lib/rss/rss.rb, test/rss/test_version.rb: 0.2.0 -> 0.2.1.
* lib/rss/content.rb, lib/rss/content/1.0.rb, lib/rss/content/2.0.rb, lib/rss/maker/content.rb, test/rss/rss-testcase.rb, test/rss/test_content.rb, test/rss/test_maker_content.rb: supported content:encoded with RSS 2.0. Suggested by Sam Lown. Thanks. * NEWS: added the above changes. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@14054 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/rss/test_maker_content.rb')
-rw-r--r--test/rss/test_maker_content.rb13
1 files changed, 13 insertions, 0 deletions
diff --git a/test/rss/test_maker_content.rb b/test/rss/test_maker_content.rb
index c29d75a..53750bb 100644
--- a/test/rss/test_maker_content.rb
+++ b/test/rss/test_maker_content.rb
@@ -26,6 +26,19 @@ module RSS
assert_content(@elements, rss.items.last)
end
+ def test_rss20
+ rss = RSS::Maker.make("2.0") do |maker|
+ setup_dummy_channel(maker)
+
+ setup_dummy_item(maker)
+ item = maker.items.last
+ @elements.each do |name, value|
+ item.__send__("#{accessor_name(name)}=", value)
+ end
+ end
+ assert_content(@elements, rss.items.last)
+ end
+
private
def accessor_name(name)
"content_#{name}"