diff options
author | kou <kou@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2006-06-17 00:17:32 +0000 |
---|---|---|
committer | kou <kou@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2006-06-17 00:17:32 +0000 |
commit | dcec1c3d4940842a65d38d2191d5c4889e03cc8a (patch) | |
tree | 92f4dd2d450c0c7573834b76607ce71264ee2f85 /test/rss/test_taxonomy.rb | |
parent | 201028438d5cb0bd8111aa184fa3cfcbe2d329aa (diff) |
* lib/rss, test/rss: backported from trunk. (2005-11-16 - now)
* lib/rss/1.0.rb: added convenience method 'resources'.
* lib/rss/taxonomy.rb: ditto.
* test/rss/rss-assertions.rb: added test for 'resources'.
* test/rss/test_taxonomy.rb: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@10289 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/rss/test_taxonomy.rb')
-rw-r--r-- | test/rss/test_taxonomy.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/rss/test_taxonomy.rb b/test/rss/test_taxonomy.rb index 9d9665c476..c899f4720b 100644 --- a/test/rss/test_taxonomy.rb +++ b/test/rss/test_taxonomy.rb @@ -117,6 +117,7 @@ EOR topics = @rss.channel.taxo_topics assert_equal(@topics_lis.sort, topics.Bag.lis.collect {|li| li.resource}.sort) + assert_equal(@topics_lis.sort, topics.resources.sort) assert_equal(@rss.taxo_topics.first, @rss.taxo_topic) @@ -128,8 +129,7 @@ EOR assert_equal(value, topic.about) assert_equal(value, topic.taxo_link) when :topics - assert_equal(value.sort, - topic.taxo_topics.Bag.lis.collect {|li| li.resource}.sort) + assert_equal(value.sort, topic.taxo_topics.resources.sort) else assert_equal(value, topic.__send__("dc_#{name}")) end |