Files
forego/env_test.go
Nicolás Hock Isaza 656dbf434d Move loading multiple environments to env.go
This way all the env related code is in the same place.
2014-12-22 19:30:02 -05:00

21 lines
402 B
Go

package main
import "testing"
func TestMultipleEnvironmentFiles(t *testing.T) {
envs := []string{"fixtures/envs/.env1", "fixtures/envs/.env2"}
env, err := loadEnvs(envs)
if err != nil {
t.Fatalf("Could not read environments: %s", err)
}
if env["env1"] == "" {
t.Fatalf("$env1 should be present and is not")
}
if env["env2"] == "" {
t.Fatalf("$env2 should be present and is not")
}
}