diff --git a/plugin_test.go b/plugin_test.go index a131f11..afa8de5 100644 --- a/plugin_test.go +++ b/plugin_test.go @@ -104,6 +104,24 @@ func TestPlugin(t *testing.T) { } }) }) + + g.Describe("tfValidate", func() { + g.It("Should return correct validate command", func() { + tests := []struct { + name string + want *exec.Cmd + }{ + { + "default", + exec.Command("terraform", "validate"), + } + } + + for _, tt := range tests { + g.Assert(tfValidate()).Equal(tt.want) + } + }) + }) g.Describe("tfPlan", func() { g.It("Should return correct plan commands given the arguments", func() {