2017-02-23 06:03:50 +01:00
|
|
|
describe "brew outdated", :integration_test do
|
2017-03-27 11:27:48 +01:00
|
|
|
context "quiet output" do
|
|
|
|
it "prints outdated Formulae" do
|
|
|
|
setup_test_formula "testball"
|
|
|
|
(HOMEBREW_CELLAR/"testball/0.0.1/foo").mkpath
|
2017-02-23 06:03:50 +01:00
|
|
|
|
2017-03-27 11:27:48 +01:00
|
|
|
expect { brew "outdated" }
|
|
|
|
.to output("testball\n").to_stdout
|
|
|
|
.and not_to_output.to_stderr
|
|
|
|
.and be_a_success
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
context "verbose output" do
|
|
|
|
it "prints out the installed and newer versions" do
|
|
|
|
setup_test_formula "testball"
|
|
|
|
(HOMEBREW_CELLAR/"testball/0.0.1/foo").mkpath
|
|
|
|
|
|
|
|
expect { brew "outdated", "--verbose" }
|
|
|
|
.to output("testball (0.0.1) < 0.1\n").to_stdout
|
|
|
|
.and not_to_output.to_stderr
|
|
|
|
.and be_a_success
|
|
|
|
end
|
2017-02-23 06:03:50 +01:00
|
|
|
end
|
|
|
|
end
|