aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/test/cmd
diff options
context:
space:
mode:
authorMarkus Reiter2017-02-23 06:07:24 +0100
committerMarkus Reiter2017-02-23 20:58:17 +0100
commit86529534cef24db7a5090e14c8e4b8594ec9a6fc (patch)
treef6c54e5397d573f085308c359b1f89187eb04697 /Library/Homebrew/test/cmd
parentc7121f6be50e44784e3e29114617c29715bd9c0f (diff)
downloadbrew-86529534cef24db7a5090e14c8e4b8594ec9a6fc.tar.bz2
Convert `brew services` test to spec.
Diffstat (limited to 'Library/Homebrew/test/cmd')
-rw-r--r--Library/Homebrew/test/cmd/services_spec.rb10
1 files changed, 10 insertions, 0 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