diff options
author | kou <kou@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2005-11-23 09:33:49 +0000 |
---|---|---|
committer | kou <kou@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2005-11-23 09:33:49 +0000 |
commit | 4cfc20b20d70280c293927c9d4ccc008c4e00c8a (patch) | |
tree | 970a0419f9dd98cd06849a0c4322ad262410f333 /test/rss | |
parent | d32f46ad4b7fdaba1c67576f595a87f3c074f544 (diff) | |
download | ruby-4cfc20b20d70280c293927c9d4ccc008c4e00c8a.tar.gz |
* test/rss/test_taxonomy.rb: use #reject directory.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9598 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/rss')
-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 4c760a43d4..b4950c0004 100644 --- a/test/rss/test_taxonomy.rb +++ b/test/rss/test_taxonomy.rb @@ -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}, |