Merge pull request #4178 from dougal/alphabetical-outdated-formulae-listing

Alphabetize the `brew outdated` formula listing.
This commit is contained in:
Markus Reiter 2018-05-16 19:13:06 +02:00 committed by GitHub
commit 73bffbaca6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 1 deletions

View File

@ -42,6 +42,7 @@ module Homebrew
fetch_head = ARGV.fetch_head?
outdated_formulae = formulae.select { |f| f.outdated?(fetch_head: fetch_head) }
.sort
outdated_formulae.each do |f|
if verbose

View File

@ -4,8 +4,11 @@ describe "brew outdated", :integration_test do
setup_test_formula "testball"
(HOMEBREW_CELLAR/"testball/0.0.1/foo").mkpath
setup_test_formula "foo"
(HOMEBREW_CELLAR/"foo/0.0.1/foo").mkpath
expect { brew "outdated" }
.to output("testball\n").to_stdout
.to output("foo\ntestball\n").to_stdout
.and not_to_output.to_stderr
.and be_a_success
end