From 1b56bcce22a069eba6afb7e36f654783e5b4fbbc Mon Sep 17 00:00:00 2001 From: kou Date: Sat, 15 Sep 2007 04:41:28 +0000 Subject: * 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 --- test/rss/rss-assertions.rb | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'test/rss/rss-assertions.rb') diff --git a/test/rss/rss-assertions.rb b/test/rss/rss-assertions.rb index 3b212c794d..41e6cd62c5 100644 --- a/test/rss/rss-assertions.rb +++ b/test/rss/rss-assertions.rb @@ -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? -- cgit v1.2.3