diff options
Diffstat (limited to 'cmd/blubberoid/openapi_test.go')
-rw-r--r-- | cmd/blubberoid/openapi_test.go | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/cmd/blubberoid/openapi_test.go b/cmd/blubberoid/openapi_test.go new file mode 100644 index 0000000..559f681 --- /dev/null +++ b/cmd/blubberoid/openapi_test.go @@ -0,0 +1,16 @@ +package main + +import ( + "io/ioutil" + "testing" + + "github.com/stretchr/testify/assert" +) + +func TestBlubberoidOpenAPISpecTemplateMatchesFile(t *testing.T) { + specFile, err := ioutil.ReadFile("../../api/openapi-spec/blubberoid.yaml") + + if assert.NoError(t, err) { + assert.Equal(t, string(specFile), openAPISpecTemplate) + } +} |