diff options
author | kou <kou@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2004-11-03 06:43:18 +0000 |
---|---|---|
committer | kou <kou@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2004-11-03 06:43:18 +0000 |
commit | d5b6a7b16947aaf4821d6b76c7de153866fb30c0 (patch) | |
tree | 450b783d2d0ee2af19ba3efb8324e73a5e0fc1d5 /test/rss/test_maker_2.0.rb | |
parent | 0b4597eccfb5ee078e546c910f2f3cee31d3274b (diff) | |
download | ruby-d5b6a7b16947aaf4821d6b76c7de153866fb30c0.tar.gz |
* 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
Diffstat (limited to 'test/rss/test_maker_2.0.rb')
-rw-r--r-- | test/rss/test_maker_2.0.rb | 3 |
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 |