diff options
Diffstat (limited to 'spec/03-environment_spec.lua')
-rw-r--r-- | spec/03-environment_spec.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/03-environment_spec.lua b/spec/03-environment_spec.lua index 842ed6f..96f4a78 100644 --- a/spec/03-environment_spec.lua +++ b/spec/03-environment_spec.lua | |||
@@ -1,5 +1,6 @@ | |||
1 | -- Import the library that contains the environment-related functions | 1 | -- Import the library that contains the environment-related functions |
2 | local system = require("system") | 2 | local system = require("system") |
3 | require("spec.helpers") | ||
3 | 4 | ||
4 | describe("Environment Variables:", function() | 5 | describe("Environment Variables:", function() |
5 | 6 | ||
@@ -11,9 +12,8 @@ describe("Environment Variables:", function() | |||
11 | end) | 12 | end) |
12 | 13 | ||
13 | 14 | ||
14 | local func = system.windows and pending or it --pending on Windows | ||
15 | -- Windows will unset a variable if set as an empty string | 15 | -- Windows will unset a variable if set as an empty string |
16 | func("should set an empty environment variable value", function() | 16 | nix_it("should set an empty environment variable value", function() |
17 | assert.is_true(system.setenv("TEST_VAR", "")) | 17 | assert.is_true(system.setenv("TEST_VAR", "")) |
18 | assert.is_equal("", system.getenv("TEST_VAR")) | 18 | assert.is_equal("", system.getenv("TEST_VAR")) |
19 | end) | 19 | end) |