grim/convey

c1a95d79fcc5
Dump govcs in here for now until i can sort out this out
package podman
import (
"testing"
. "github.com/onsi/gomega"
"keep.imfreedom.org/grim/convey/yaml"
)
func TestPullString(t *testing.T) {
g := NewGomegaWithT(t)
p := &Pull{
Tags: yaml.StringOrSlice{"foo"},
}
g.Expect(p.Valid()).To(BeNil())
}
func TestPullSlice(t *testing.T) {
g := NewGomegaWithT(t)
p := &Pull{
Tags: []string{"foo", "bar"},
}
g.Expect(p.Valid()).To(BeNil())
}
func TestPullTagsRequired(t *testing.T) {
g := NewGomegaWithT(t)
p := &Push{}
g.Expect(p.Valid()).To(MatchError(ErrNoTags))
}