Make test case less dependent on exact error string (#741)

This commit is contained in:
Thomas Boerger 2016-04-11 21:08:30 +02:00 committed by Matt Holt
parent ed8a48e7f1
commit 004a7f84ef

View file

@ -52,7 +52,13 @@ func TestInclude(t *testing.T) {
fileContent: `str1 {{ .InvalidField }} str2`,
expectedContent: "",
shouldErr: true,
expectedErrorContent: `InvalidField is not a field of struct type middleware.Context`,
expectedErrorContent: `InvalidField`,
},
{
fileContent: `str1 {{ .InvalidField }} str2`,
expectedContent: "",
shouldErr: true,
expectedErrorContent: `type middleware.Context`,
},
}