mirror of https://github.com/joho/godotenv.git
Merge pull request #3 from ys/feature/accept-equals-in-values
Use SplitN instead of splitpull/4/head
commit
3c13a80fe1
|
@ -0,0 +1,2 @@
|
|||
export OPTION_A='postgres://localhost:5432/database?sslmode=disable'
|
||||
|
|
@ -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{
|
||||
|
|
Loading…
Reference in New Issue