diff options
Diffstat (limited to 'spec/config_spec.lua')
| -rw-r--r-- | spec/config_spec.lua | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/spec/config_spec.lua b/spec/config_spec.lua index 98fcb24c..9615f050 100644 --- a/spec/config_spec.lua +++ b/spec/config_spec.lua | |||
| @@ -115,22 +115,6 @@ describe("LuaRocks config tests #integration", function() | |||
| 115 | assert.is_false(run.luarocks_bool("config --system-config")) | 115 | assert.is_false(run.luarocks_bool("config --system-config")) |
| 116 | end) | 116 | end) |
| 117 | 117 | ||
| 118 | it("outputs the path of the system config", function() | ||
| 119 | lfs.mkdir(testing_paths.testing_lrprefix) | ||
| 120 | lfs.mkdir(testing_paths.testing_lrprefix .. "/etc/") | ||
| 121 | lfs.mkdir(scdir) | ||
| 122 | |||
| 123 | local sysconfig = io.open(configfile, "w+") | ||
| 124 | sysconfig:write(" ") | ||
| 125 | sysconfig:close() | ||
| 126 | finally(function() | ||
| 127 | os.remove(configfile) | ||
| 128 | end) | ||
| 129 | |||
| 130 | local output = run.luarocks("config --system-config") | ||
| 131 | assert.are.same(configfile, output) | ||
| 132 | end) | ||
| 133 | |||
| 134 | it("fails if system config is invalid", function() | 118 | it("fails if system config is invalid", function() |
| 135 | lfs.mkdir(testing_paths.testing_lrprefix) | 119 | lfs.mkdir(testing_paths.testing_lrprefix) |
| 136 | lfs.mkdir(testing_paths.testing_lrprefix .. "/etc/") | 120 | lfs.mkdir(testing_paths.testing_lrprefix .. "/etc/") |
