Fix remaining failing test on windows

This commit is contained in:
David Bochenski 2014-07-09 15:35:36 +01:00
parent 9c77c4efaf
commit ae0bc4ea3c

View File

@ -32,8 +32,9 @@ func loadEnvAndCompareValues(t *testing.T, envFileName string, expectedValues ma
func TestLoadWithNoArgsLoadsDotEnv(t *testing.T) { func TestLoadWithNoArgsLoadsDotEnv(t *testing.T) {
err := Load() err := Load()
if err.Error() != "open .env: no such file or directory" { pathError := err.(*os.PathError)
t.Errorf("Didn't try and open .env by default") if pathError == nil || pathError.Op != "open" || pathError.Path != ".env"{
t.Errorf("Didn't try and open .env by default")11
} }
} }