aboutsummaryrefslogtreecommitdiff
path: root/spec/config_spec.lua
diff options
context:
space:
mode:
authorPeter Melnichenko <mpeterval@gmail.com>2016-07-08 14:41:15 +0300
committerPeter Melnichenko <mpeterval@gmail.com>2016-07-08 14:43:24 +0300
commitab86e13d0a408691b48786c394404736b7ac8dc0 (patch)
treeddbb2d397c302cda6dbd7dd5d8a8b4b6d275e3cc /spec/config_spec.lua
parent8867f3324d97584ed24f3a1082144e9b1375d663 (diff)
downloadluarocks-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.lua3
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")
2local lfs = require("lfs") 2local lfs = require("lfs")
3local run = test_env.run 3local run = test_env.run
4local testing_paths = test_env.testing_paths 4local testing_paths = test_env.testing_paths
5local site_config
5 6
6test_env.unload_luarocks() 7test_env.unload_luarocks()
7 8
8describe("LuaRocks config tests #blackbox #b_config", function() 9describe("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)