mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* 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/trunk@9556 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
fb1d1a917d
commit
02c5d7e79a
5 changed files with 33 additions and 5 deletions
|
@ -193,6 +193,7 @@ module RSS
|
|||
|
||||
def assert_channel10_items(attrs, items)
|
||||
_wrap_assertion do
|
||||
assert_equal(items.resources, items.Seq.lis.collect {|x| x.resource})
|
||||
items.Seq.lis.each_with_index do |li, i|
|
||||
assert_attributes(attrs[i], %w(resource), li)
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue