aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorMike McQuaid2016-07-29 15:53:34 -0600
committerMike McQuaid2016-07-29 21:21:02 -0600
commitb43e49a9b841cc18316566258414976de217f0f0 (patch)
treeea63e3edcb1c4fdc95e35b34c672243f233686f2 /Library
parentc90552f66bb174e3c0c69de88ce389acbedbac8b (diff)
downloadbrew-b43e49a9b841cc18316566258414976de217f0f0.tar.bz2
test_formula: fix sort order bugs.
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/test/test_formula.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/Library/Homebrew/test/test_formula.rb b/Library/Homebrew/test/test_formula.rb
index e9d3ba9bf..4f2eb228f 100644
--- a/Library/Homebrew/test/test_formula.rb
+++ b/Library/Homebrew/test/test_formula.rb
@@ -443,7 +443,8 @@ class FormulaTests < Homebrew::TestCase
assert_predicate f2, :installed?
assert_predicate f3, :installed?
- assert_equal f3.installed_kegs[0..1], f3.eligible_kegs_for_cleanup
+ assert_equal f3.installed_kegs.sort_by(&:version)[0..1],
+ f3.eligible_kegs_for_cleanup.sort_by(&:version)
ensure
[f1, f2, f3].each(&:clear_cache)
f3.rack.rmtree