Skip to content

Commit 11f10e6

Browse files
authored
Merge pull request #11 from veridit/master
Test extra .env cases
2 parents f9e2906 + fc8dbcf commit 11f10e6

File tree

3 files changed

+7
-1
lines changed

3 files changed

+7
-1
lines changed

.gitignore

+2
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,5 @@
77
# Libraries don't need dependency lock
88
# Dependencies will be locked in application that uses them
99
/shard.lock
10+
.aider*
11+
.env

spec/fixtures/parse_sample.env

+3-1
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@ MULTIPLE_VARIABLE2=$STR$INT1
2929
SINGLE_BLOCK_VARIABLE=${STR}${INT}
3030
SINGLE_QUOTES_VARIABLE='hello $STR!'
3131
DOUBLE_QUOTES_VARIABLE="hello ${STR}, my email is $USERNAME"
32+
UNQUOTED_VARIABLE=Hello there!
33+
EMPTY_VARIABLE=
3234

3335
LIST_STR='foo,bar'
3436
LIST_STR_WITH_SPACES=' foo, bar'
@@ -38,4 +40,4 @@ DICT_STR=key1=val1, key2=val2
3840
DICT_INT=key1=1, key2=2
3941
JSON='{"foo": "bar", "baz": [1, 2, 3]}'
4042
RETAIN_INNER_QUOTES={"foo": "bar"}
41-
RETAIN_INNER_QUOTES_AS_STRING='{"foo": "bar"}'
43+
RETAIN_INNER_QUOTES_AS_STRING='{"foo": "bar"}'

spec/spec_helper.cr

+2
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,8 @@ def it_equal_group(data = nil, file = __FILE__, line = __LINE__)
3838
it_equal data, "SINGLE_BLOCK_VARIABLE", "foo42", file, line
3939
it_equal data, "SINGLE_QUOTES_VARIABLE", "hello $STR!", file, line
4040
it_equal data, "DOUBLE_QUOTES_VARIABLE", "hello foo, my email is [email protected]", file, line
41+
it_equal data, "UNQUOTED_VARIABLE", "Hello there!", file, line
42+
it_equal data, "EMPTY_VARIABLE", "", file, line
4143
end
4244

4345
def it_equal(data, key, expected, file = __FILE__, line = __LINE__)

0 commit comments

Comments
 (0)