env_lint 0.0.3 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/env_lint/linted_env.rb +1 -1
- data/lib/env_lint/version.rb +1 -1
- data/spec/env_lint/linted_env_spec.rb +8 -0
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: de03a4e6877d1f5417a25364a2e9de97122d2089
|
4
|
+
data.tar.gz: bc38119bb9c5e3978a326c3c012873c54a10cdf3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a33bd418378fbc2ef3e08a9f0e1eb9455a9860976f566909fc4094e8776a67d6f4be5d5514a9657bf3394ace78df14318230b805921438e6a0a983c065efdd3f
|
7
|
+
data.tar.gz: f759459f8455d6fac91731c9e254610f66412af508bd388a4da9f5985892be3b4d9faf5a286792c13ccd51b3dcfeb275e8964c289155f0eae7258ce2f6ba664f
|
data/lib/env_lint/linted_env.rb
CHANGED
data/lib/env_lint/version.rb
CHANGED
@@ -47,6 +47,14 @@ module EnvLint
|
|
47
47
|
expect(linted_env.fetch('APP', 'default')).to eq('default')
|
48
48
|
end
|
49
49
|
|
50
|
+
it 'allows default value to be false' do
|
51
|
+
env = {}
|
52
|
+
dot_env_file = DotEnvFile.new('.env.example', [Variable.new('APP')])
|
53
|
+
linted_env = LintedEnv.new(env, dot_env_file)
|
54
|
+
|
55
|
+
expect(linted_env.fetch('APP', false)).to eq(false)
|
56
|
+
end
|
57
|
+
|
50
58
|
it 'returns default from block for undefined variable' do
|
51
59
|
env = {}
|
52
60
|
dot_env_file = DotEnvFile.new('.env.example', [Variable.new('APP')])
|