backup test

This commit is contained in:
Linh Vo 2017-05-25 11:31:36 -05:00
parent 108c644938
commit 45acf3c9b9

15
ctl/backup_test.go Normal file
View file

@ -0,0 +1,15 @@
package ctl
import (
"testing"
"golang.org/x/net/context"
)
func TestBackupCommand_FileRequired(t *testing.T){
cm := BackupCommand{}
ctx := context.Background()
err := cm.Run(ctx)
if err.Error() != "output file required"{
t.Fatalf("Command not working, expect: output file required, actual: '%s'", err)
}
}