Convert brew services test to spec.

This commit is contained in:
Markus Reiter 2017-02-23 06:07:24 +01:00
parent c7121f6be5
commit 86529534ce
2 changed files with 10 additions and 11 deletions

View File

@ -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

View File

@ -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