spud/cli/stop_service_test.go

18 lines
230 B
Go
Raw Normal View History

package cli
import (
"testing"
)
func TestCliStopRequiresAServiceName(t *testing.T) {
cli := GetCli()
cli.SetArgs([]string{"stop"})
outcome := cli.Execute()
if outcome == nil {
t.Error("Expected error, got nil.")
}
}