blob: f7c33c8b3a187e1b284554121278e5ded7c81d25 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
package cmd
import (
"fmt"
"path/filepath"
"testing"
"github.com/stretchr/testify/assert"
"github.com/vespa-engine/vespa/client/go/util"
)
func TestMan(t *testing.T) {
tmpDir := t.TempDir()
out, _ := execute(command{args: []string{"man", tmpDir}}, t, nil)
assert.Equal(t, fmt.Sprintf("Success: Man pages written to %s\n", tmpDir), out)
assert.True(t, util.PathExists(filepath.Join(tmpDir, "vespa.1")))
}
|