2017-07-15 19:03:17 -04:00
|
|
|
package system
|
|
|
|
|
|
|
|
import (
|
|
|
|
"testing"
|
|
|
|
|
2017-08-21 16:30:09 -04:00
|
|
|
"github.com/docker/cli/internal/test"
|
2017-07-15 19:03:17 -04:00
|
|
|
"github.com/stretchr/testify/assert"
|
|
|
|
)
|
|
|
|
|
|
|
|
func TestPrunePromptPre131(t *testing.T) {
|
|
|
|
cli := test.NewFakeCli(&fakeClient{version: "1.30"})
|
2017-07-18 09:26:45 -04:00
|
|
|
cmd := newPruneCommand(cli)
|
2017-07-15 19:03:17 -04:00
|
|
|
assert.NoError(t, cmd.Execute())
|
|
|
|
assert.NotContains(t, cli.OutBuffer().String(), "all build cache")
|
|
|
|
}
|