summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorkou <kou@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2006-06-17 00:30:00 +0000
committerkou <kou@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2006-06-17 00:30:00 +0000
commitd41bea59c44d97c3936ca806bf05e6221b66dce0 (patch)
tree569b12bfdc2e80106b0f86f6e455ce2d735e3790 /test
parent76b82158770b986c6897904e3a7acc90d0629bf0 (diff)
* 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
Diffstat (limited to 'test')
-rw-r--r--test/rss/test_taxonomy.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/rss/test_taxonomy.rb b/test/rss/test_taxonomy.rb
index c51d7d2..10ae551 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},