diff options
author | kou <kou@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2005-04-07 02:55:48 +0000 |
---|---|---|
committer | kou <kou@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2005-04-07 02:55:48 +0000 |
commit | c3410fc1e1d4085bf8f7531a9061818cfaf7b34c (patch) | |
tree | 420ad1cf825d8bd1358fb9340078cfbaa94d6023 /test/rss/rss-assertions.rb | |
parent | f1587ee5a095e12ff3a747ffceaa53be737ede96 (diff) | |
download | ruby-c3410fc1e1d4085bf8f7531a9061818cfaf7b34c.tar.gz |
* lib/rss/maker/dublincore.rb: _really_ supported multiple Dublin
Core items.
* test/rss/rss-assertions.rb (assert_multiple_dublin_core): added
an assertion for testing multiple Dublin Core items.
* test/rss/test_maker_dc.rb (test_rss10_multiple): added a test
for making multiple Dublin Core items.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@8259 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/rss/rss-assertions.rb')
-rw-r--r-- | test/rss/rss-assertions.rb | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/test/rss/rss-assertions.rb b/test/rss/rss-assertions.rb index 569e9621d2..2636062519 100644 --- a/test/rss/rss-assertions.rb +++ b/test/rss/rss-assertions.rb @@ -394,6 +394,16 @@ module RSS end end + def assert_multiple_dublin_core(elems, target) + _wrap_assertion do + elems.each do |name, values, plural| + plural ||= "#{name}s" + actual = target.__send__("dc_#{plural}").collect{|x| x.value} + assert_equal(values, actual) + end + end + end + def assert_syndication(elems, target) _wrap_assertion do elems.each do |name, value| |