Merge pull request #3 from ys/feature/accept-equals-in-values

Use SplitN instead of split
This commit is contained in:
John Barton
2014-03-10 14:25:32 +11:00
2 changed files with 11 additions and 0 deletions

View File

@ -93,6 +93,15 @@ func TestLoadExportedEnv(t *testing.T) {
loadEnvAndCompareValues(t, envFileName, expectedValues)
}
func TestLoadEqualsEnv(t *testing.T) {
envFileName := "fixtures/equals.env"
expectedValues := map[string]string{
"OPTION_A": "postgres://localhost:5432/database?sslmode=disable",
}
loadEnvAndCompareValues(t, envFileName, expectedValues)
}
func TestLoadQuotedEnv(t *testing.T) {
envFileName := "fixtures/quoted.env"
expectedValues := map[string]string{