mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* lib/rss.rb, lib/rss/, test/rss/:
- 0.1.9 -> 0.2.0. - supported Slash module. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13446 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
b528261ad8
commit
1b56bcce22
19 changed files with 296 additions and 18 deletions
|
@ -2018,6 +2018,18 @@ EOA
|
|||
end
|
||||
end
|
||||
|
||||
def assert_slash_elements(expected, target)
|
||||
assert_equal(expected,
|
||||
{
|
||||
"section" => target.slash_section,
|
||||
"department" => target.slash_department,
|
||||
"comments" => target.slash_comments,
|
||||
"hit_parades" => target.slash_hit_parades,
|
||||
})
|
||||
assert_equal(expected["hit_parades"].join(","),
|
||||
target.slash_hit_parade)
|
||||
end
|
||||
|
||||
def chain_reader(target, readers, &block)
|
||||
readers.inject(target) do |result, reader|
|
||||
return nil if result.nil?
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue