Fix remaining failing test on windows

pull/4/head
David Bochenski 2014-07-09 15:35:36 +01:00
parent 9c77c4efaf
commit ae0bc4ea3c
1 changed files with 3 additions and 2 deletions

View File

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