Merge pull request #2141 from reitermarkus/spec-outdated

Convert `brew outdated` test to spec.
This commit is contained in:
Markus Reiter 2017-02-25 03:28:32 +01:00 committed by GitHub
commit 8927f663f2
2 changed files with 11 additions and 10 deletions

View File

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

View File

@ -1,10 +0,0 @@
require "testing_env"
class IntegrationCommandTestOutdated < IntegrationCommandTestCase
def test_outdated
setup_test_formula "testball"
(HOMEBREW_CELLAR/"testball/0.0.1/foo").mkpath
assert_equal "testball", cmd("outdated")
end
end