Convert brew doctor test to spec.
This commit is contained in:
parent
c7121f6be5
commit
2b9c81b225
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