Merge pull request #2129 from reitermarkus/spec-doctor

Convert `brew doctor` test to spec.
This commit is contained in:
Markus Reiter 2017-02-25 06:50:45 +01:00 committed by GitHub
commit 8618aa7dcd
2 changed files with 6 additions and 8 deletions

View File

@ -0,0 +1,6 @@
describe "brew doctor", :integration_test do
specify "check_integration_test" do
expect { brew "doctor", "check_integration_test" }
.to output(/This is an integration test/).to_stderr
end
end

View File

@ -1,8 +0,0 @@
require "testing_env"
class IntegrationCommandTestDoctor < IntegrationCommandTestCase
def test_doctor
assert_match "This is an integration test",
cmd_fail("doctor", "check_integration_test")
end
end