Merge pull request #4178 from dougal/alphabetical-outdated-formulae-listing
Alphabetize the `brew outdated` formula listing.
This commit is contained in:
commit
73bffbaca6
@ -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
|
||||
|
||||
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user