Get the basic tests green.

This commit is contained in:
John Barton (joho)
2013-07-30 17:44:28 +10:00
parent 78ba83b776
commit 973cf53008
2 changed files with 69 additions and 0 deletions

View File

@ -5,6 +5,13 @@ import (
"testing"
)
func TestLoadFileNotFound(t *testing.T) {
err := Load("somefilethatwillneverexistever.env")
if err == nil {
t.Error("File wasn't found but Load didn't return an error")
}
}
func TestLoadPlainEnv(t *testing.T) {
envFileName := "fixtures/plain.env"
err := Load(envFileName)