mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* lib/rss, test/rss: backported from trunk. (2005-11-16 - now)
* test/rss/test_taxonomy.rb: use #reject directory. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@10293 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
76b8215877
commit
d41bea59c4
2 changed files with 4 additions and 2 deletions
|
@ -54,6 +54,8 @@ Sat Jun 17 09:03:47 2006 Kouhei Sutou <kou@cozmixng.org>
|
|||
Taxonomy from Taxo.
|
||||
* lib/rss/maker/taxonomy.rb: ditto.
|
||||
|
||||
* test/rss/test_taxonomy.rb: use #reject directory.
|
||||
|
||||
Sat Jun 17 02:01:00 2006 Tanaka Akira <akr@m17n.org>
|
||||
|
||||
* lib/pp.rb (Kernel#pretty_inspect): defined for pretty printed
|
||||
|
|
|
@ -146,8 +146,8 @@ EOR
|
|||
@topic_nodes.each_with_index do |node, i|
|
||||
expected = REXML::Document.new(node).root
|
||||
actual = REXML::Document.new(@rss.taxo_topics[i].to_s(true, "")).root
|
||||
expected_elems = expected.children.reject {|x| x.is_a?(REXML::Text)}
|
||||
actual_elems = actual.children.reject {|x| x.is_a?(REXML::Text)}
|
||||
expected_elems = expected.reject {|x| x.is_a?(REXML::Text)}
|
||||
actual_elems = actual.reject {|x| x.is_a?(REXML::Text)}
|
||||
expected_elems.sort! {|x, y| x.name <=> y.name}
|
||||
actual_elems.sort! {|x, y| x.name <=> y.name}
|
||||
assert_equal(expected_elems.collect {|x| x.to_s},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue