Merge pull request #2121 from reitermarkus/spec-services

Convert `brew services` test to spec.
This commit is contained in:
Markus Reiter 2017-02-25 06:47:31 +01:00 committed by GitHub
commit 0c5ddf116e
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