diff options
| author | Markus Reiter | 2017-02-25 06:50:45 +0100 |
|---|---|---|
| committer | GitHub | 2017-02-25 06:50:45 +0100 |
| commit | 8618aa7dcd97f008d550a6a7ce0719ecb607b445 (patch) | |
| tree | 83dd9c59d87030094d203c573d1010fb4a8ae42d /Library | |
| parent | 69cf50cdcb9b8dfa0ea8a3ce98b4212288c563bd (diff) | |
| parent | 2b9c81b225e549bc07295e4c6e24699b8d353e01 (diff) | |
| download | brew-8618aa7dcd97f008d550a6a7ce0719ecb607b445.tar.bz2 | |
Merge pull request #2129 from reitermarkus/spec-doctor
Convert `brew doctor` test to spec.
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Homebrew/test/cmd/doctor_spec.rb | 6 | ||||
| -rw-r--r-- | Library/Homebrew/test/doctor_test.rb | 8 |
2 files changed, 6 insertions, 8 deletions
diff --git a/Library/Homebrew/test/cmd/doctor_spec.rb b/Library/Homebrew/test/cmd/doctor_spec.rb new file mode 100644 index 000000000..530adcd98 --- /dev/null +++ b/Library/Homebrew/test/cmd/doctor_spec.rb @@ -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 diff --git a/Library/Homebrew/test/doctor_test.rb b/Library/Homebrew/test/doctor_test.rb deleted file mode 100644 index d2dc871f4..000000000 --- a/Library/Homebrew/test/doctor_test.rb +++ /dev/null @@ -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 |
