Merge pull request #2129 from reitermarkus/spec-doctor
Convert `brew doctor` test to spec.
This commit is contained in:
commit
8618aa7dcd
6
Library/Homebrew/test/cmd/doctor_spec.rb
Normal file
6
Library/Homebrew/test/cmd/doctor_spec.rb
Normal 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
|
||||
@ -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
|
||||
Loading…
x
Reference in New Issue
Block a user