diff options
author | Peter Melnichenko <mpeterval@gmail.com> | 2016-07-08 14:41:15 +0300 |
---|---|---|
committer | Peter Melnichenko <mpeterval@gmail.com> | 2016-07-08 14:43:24 +0300 |
commit | ab86e13d0a408691b48786c394404736b7ac8dc0 (patch) | |
tree | ddbb2d397c302cda6dbd7dd5d8a8b4b6d275e3cc /spec/config_spec.lua | |
parent | 8867f3324d97584ed24f3a1082144e9b1375d663 (diff) | |
download | luarocks-ab86e13d0a408691b48786c394404736b7ac8dc0.tar.gz luarocks-ab86e13d0a408691b48786c394404736b7ac8dc0.tar.bz2 luarocks-ab86e13d0a408691b48786c394404736b7ac8dc0.zip |
Remove some more unused stuff and globals from tests
Diffstat (limited to 'spec/config_spec.lua')
-rw-r--r-- | spec/config_spec.lua | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/spec/config_spec.lua b/spec/config_spec.lua index 4a09fdcf..0dee8620 100644 --- a/spec/config_spec.lua +++ b/spec/config_spec.lua | |||
@@ -2,13 +2,14 @@ local test_env = require("test/test_environment") | |||
2 | local lfs = require("lfs") | 2 | local lfs = require("lfs") |
3 | local run = test_env.run | 3 | local run = test_env.run |
4 | local testing_paths = test_env.testing_paths | 4 | local testing_paths = test_env.testing_paths |
5 | local site_config | ||
5 | 6 | ||
6 | test_env.unload_luarocks() | 7 | test_env.unload_luarocks() |
7 | 8 | ||
8 | describe("LuaRocks config tests #blackbox #b_config", function() | 9 | describe("LuaRocks config tests #blackbox #b_config", function() |
9 | 10 | ||
10 | before_each(function() | 11 | before_each(function() |
11 | test_env.setup_specs(extra_rocks) | 12 | test_env.setup_specs() |
12 | test_env.unload_luarocks() -- need to be required here, because site_config is created after first loading of specs | 13 | test_env.unload_luarocks() -- need to be required here, because site_config is created after first loading of specs |
13 | site_config = require("luarocks.site_config") | 14 | site_config = require("luarocks.site_config") |
14 | end) | 15 | end) |