From bd75ea1d199defc6e857c418c82761b1d2178f1b Mon Sep 17 00:00:00 2001 From: Kartik Singhal Date: Sat, 31 Jan 2015 21:38:05 +0530 Subject: [PATCH] Updated test corresponding to #49 --- cobra_test.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/cobra_test.go b/cobra_test.go index dd44812c..5c98a603 100644 --- a/cobra_test.go +++ b/cobra_test.go @@ -461,7 +461,7 @@ func TestRootHelp(t *testing.T) { x := fullSetupTest("--help") checkResultContains(t, x, "Available Commands:") - checkResultContains(t, x, "for more information about that command") + checkResultContains(t, x, "for more information about a command") if strings.Contains(x.Output, "unknown flag: --help") { t.Errorf("--help shouldn't trigger an error, Got: \n %s", x.Output) @@ -470,7 +470,7 @@ func TestRootHelp(t *testing.T) { x = fullSetupTest("echo --help") checkResultContains(t, x, "Available Commands:") - checkResultContains(t, x, "for more information about that command") + checkResultContains(t, x, "for more information about a command") if strings.Contains(x.Output, "unknown flag: --help") { t.Errorf("--help shouldn't trigger an error, Got: \n %s", x.Output) @@ -482,7 +482,7 @@ func TestRootNoCommandHelp(t *testing.T) { x := rootOnlySetupTest("--help") checkResultOmits(t, x, "Available Commands:") - checkResultOmits(t, x, "for more information about that command") + checkResultOmits(t, x, "for more information about a command") if strings.Contains(x.Output, "unknown flag: --help") { t.Errorf("--help shouldn't trigger an error, Got: \n %s", x.Output) @@ -491,7 +491,7 @@ func TestRootNoCommandHelp(t *testing.T) { x = rootOnlySetupTest("echo --help") checkResultOmits(t, x, "Available Commands:") - checkResultOmits(t, x, "for more information about that command") + checkResultOmits(t, x, "for more information about a command") if strings.Contains(x.Output, "unknown flag: --help") { t.Errorf("--help shouldn't trigger an error, Got: \n %s", x.Output)