From d5b6a7b16947aaf4821d6b76c7de153866fb30c0 Mon Sep 17 00:00:00 2001 From: kou Date: Wed, 3 Nov 2004 06:43:18 +0000 Subject: * test/rss/*.rb: removed tab width configuration headers. * test/rss/test_maker_{0.9,1.0}.rb: sort -> do_sort. * lib/rss/maker/*.rb: changed API to RSS version independence. * lib/rss/maker/base.rb (RSS::Maker::XMLStyleSheets::XMLStyleSheet): checked required (pseudo) attributes. * lib/rss/maker/base.rb (RSS::Maker::Items): sort -> do_sort. * lib/rss/rss.rb (RSS::BaseModel.install_date_element): avoided warning. * lib/rss/0.9.rb (RSS::Rss#textinput): added convenience method. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7182 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- test/rss/test_maker_2.0.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'test/rss/test_maker_2.0.rb') 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 -- cgit v1.2.3