aboutsummaryrefslogtreecommitdiffstats
path: root/test/rss/test_maker_0.9.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/rss/test_maker_0.9.rb')
-rw-r--r--test/rss/test_maker_0.9.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/rss/test_maker_0.9.rb b/test/rss/test_maker_0.9.rb
index 4ccae45405..df8cd5fe11 100644
--- a/test/rss/test_maker_0.9.rb
+++ b/test/rss/test_maker_0.9.rb
@@ -279,7 +279,7 @@ module RSS
item.link = "#{link}#{i}"
item.description = "#{description}#{i}"
end
- maker.items.sort
+ maker.items.do_sort = true
end
assert_equal(item_size, rss.items.size)
rss.channel.items.each_with_index do |item, i|
@@ -298,7 +298,7 @@ module RSS
item.link = "#{link}#{i}"
item.description = "#{description}#{i}"
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