diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2016-10-13 02:31:43 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2016-10-13 02:31:43 +0000 |
commit | 7e9112a4413156cce4393983ecbb98639517765a (patch) | |
tree | f1aad3112e10277ebc1c8cf8f8ca11893329deb2 /test/rss/test_maker_1.0.rb | |
parent | 43112104dffdcee69628d60dd78d761e8ea650ae (diff) | |
download | ruby-7e9112a4413156cce4393983ecbb98639517765a.tar.gz |
Fix tests depending on sort stability
* test/rexml/xpath/test_text.rb (test_ancestors): Array#sort may
not be stable. [ruby-core:76088] [Bug #12509]
* test/rss/test_maker_{0.9,1.0,2.0}.rb (test_items): ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56412 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/rss/test_maker_1.0.rb')
-rw-r--r-- | test/rss/test_maker_1.0.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/test/rss/test_maker_1.0.rb b/test/rss/test_maker_1.0.rb index c8f9977e43..f3c0e50ceb 100644 --- a/test/rss/test_maker_1.0.rb +++ b/test/rss/test_maker_1.0.rb @@ -269,6 +269,7 @@ module RSS assert_equal(link, item.link) assert_nil(item.description) + pubDate = Time.now item_size = 5 rss = RSS::Maker.make("1.0") do |maker| @@ -279,6 +280,7 @@ module RSS _item.title = "#{title}#{i}" _item.link = "#{link}#{i}" _item.description = "#{description}#{i}" + _item.date = pubDate - i end end maker.items.do_sort = true |