Hide help command for category tests

This commit is contained in:
Dan Buch 2016-06-22 09:48:39 -04:00
parent be875c395c
commit 3c5afd4757
No known key found for this signature in database
GPG Key ID: FAEF12936DD3E3EC

View File

@ -1125,6 +1125,7 @@ func TestApp_Run_Version(t *testing.T) {
func TestApp_Run_Categories(t *testing.T) { func TestApp_Run_Categories(t *testing.T) {
app := NewApp() app := NewApp()
app.Name = "categories" app.Name = "categories"
app.HideHelp = true
app.Commands = []Command{ app.Commands = []Command{
{ {
Name: "command1", Name: "command1",
@ -1174,6 +1175,7 @@ func TestApp_Run_Categories(t *testing.T) {
func TestApp_VisibleCategories(t *testing.T) { func TestApp_VisibleCategories(t *testing.T) {
app := NewApp() app := NewApp()
app.Name = "visible-categories" app.Name = "visible-categories"
app.HideHelp = true
app.Commands = []Command{ app.Commands = []Command{
{ {
Name: "command1", Name: "command1",
@ -1213,6 +1215,7 @@ func TestApp_VisibleCategories(t *testing.T) {
app = NewApp() app = NewApp()
app.Name = "visible-categories" app.Name = "visible-categories"
app.HideHelp = true
app.Commands = []Command{ app.Commands = []Command{
{ {
Name: "command1", Name: "command1",
@ -1247,6 +1250,7 @@ func TestApp_VisibleCategories(t *testing.T) {
app = NewApp() app = NewApp()
app.Name = "visible-categories" app.Name = "visible-categories"
app.HideHelp = true
app.Commands = []Command{ app.Commands = []Command{
{ {
Name: "command1", Name: "command1",