mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
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
This commit is contained in:
parent
43112104df
commit
7e9112a441
5 changed files with 17 additions and 4 deletions
|
@ -315,6 +315,7 @@ module RSS
|
|||
assert_equal(link, item.link)
|
||||
assert_nil(item.description)
|
||||
|
||||
pubDate = Time.now
|
||||
|
||||
item_size = 5
|
||||
rss = RSS::Maker.make("0.91") do |maker|
|
||||
|
@ -325,6 +326,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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue