diff options
| author | Markus Reiter | 2017-02-23 06:07:24 +0100 |
|---|---|---|
| committer | Markus Reiter | 2017-02-23 20:58:17 +0100 |
| commit | 86529534cef24db7a5090e14c8e4b8594ec9a6fc (patch) | |
| tree | f6c54e5397d573f085308c359b1f89187eb04697 /Library | |
| parent | c7121f6be50e44784e3e29114617c29715bd9c0f (diff) | |
| download | brew-86529534cef24db7a5090e14c8e4b8594ec9a6fc.tar.bz2 | |
Convert `brew services` test to spec.
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Homebrew/test/cmd/services_spec.rb | 10 | ||||
| -rw-r--r-- | Library/Homebrew/test/services_test.rb | 11 |
2 files changed, 10 insertions, 11 deletions
diff --git a/Library/Homebrew/test/cmd/services_spec.rb b/Library/Homebrew/test/cmd/services_spec.rb new file mode 100644 index 000000000..c456fea17 --- /dev/null +++ b/Library/Homebrew/test/cmd/services_spec.rb @@ -0,0 +1,10 @@ +describe "brew services", :integration_test, :needs_macos, :needs_official_cmd_taps do + it "allows controlling services" do + setup_remote_tap "homebrew/services" + + expect { brew "services", "list" } + .to output("Warning: No services available to control with `brew services`\n").to_stderr + .and not_to_output.to_stdout + .and be_a_success + end +end diff --git a/Library/Homebrew/test/services_test.rb b/Library/Homebrew/test/services_test.rb deleted file mode 100644 index 280aeb9f4..000000000 --- a/Library/Homebrew/test/services_test.rb +++ /dev/null @@ -1,11 +0,0 @@ -require "testing_env" - -class IntegrationCommandTestServices < IntegrationCommandTestCase - def test_services - needs_test_cmd_taps - needs_macos - setup_remote_tap("homebrew/services") - assert_equal "Warning: No services available to control with `brew services`", - cmd("services", "list") - end -end |
