2017-10-17 08:06:16 +00:00
|
|
|
package version
|
|
|
|
|
|
|
|
import (
|
|
|
|
"strings"
|
|
|
|
"testing"
|
|
|
|
|
|
|
|
"github.com/mitchellh/cli"
|
|
|
|
)
|
|
|
|
|
|
|
|
func TestVersionCommand_noTabs(t *testing.T) {
|
2017-10-17 14:07:48 +00:00
|
|
|
t.Parallel()
|
2017-10-17 08:06:16 +00:00
|
|
|
if strings.ContainsRune(New(cli.NewMockUi(), "").Help(), '\t') {
|
2017-10-17 13:44:20 +00:00
|
|
|
t.Fatal("help has tabs")
|
2017-10-17 08:06:16 +00:00
|
|
|
}
|
|
|
|
}
|