summaryrefslogtreecommitdiff
path: root/test/rss/test_maker_2.0.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/rss/test_maker_2.0.rb')
-rw-r--r--test/rss/test_maker_2.0.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/test/rss/test_maker_2.0.rb b/test/rss/test_maker_2.0.rb
index 54375934c4..b0752f985f 100644
--- a/test/rss/test_maker_2.0.rb
+++ b/test/rss/test_maker_2.0.rb
@@ -340,6 +340,7 @@ module RSS
item.comments = "#{comments}#{i}"
item.date = pubDate
end
+ maker.items.do_sort = true
end
assert_equal(item_size, rss.items.size)
rss.channel.items.each_with_index do |item, i|
@@ -363,7 +364,7 @@ module RSS
item.comments = "#{comments}#{i}"
item.date = pubDate
end
- maker.items.sort = Proc.new do |x, y|
+ maker.items.do_sort = Proc.new do |x, y|
y.title[-1] <=> x.title[-1]
end
end