aboutsummaryrefslogtreecommitdiff
path: root/spec/config_spec.lua
diff options
context:
space:
mode:
Diffstat (limited to 'spec/config_spec.lua')
-rw-r--r--spec/config_spec.lua12
1 files changed, 6 insertions, 6 deletions
diff --git a/spec/config_spec.lua b/spec/config_spec.lua
index f6cabd8c..0dee8620 100644
--- a/spec/config_spec.lua
+++ b/spec/config_spec.lua
@@ -1,17 +1,17 @@
1local test_env = require("test/test_environment") 1local test_env = require("test/test_environment")
2local lfs = require("lfs") 2local lfs = require("lfs")
3local run = test_env.run
4local testing_paths = test_env.testing_paths
5local site_config
3 6
4test_env.unload_luarocks() 7test_env.unload_luarocks()
5local cfg = require("luarocks.cfg")
6 8
7expose("LuaRocks config tests #blackbox #b_config", function() 9describe("LuaRocks config tests #blackbox #b_config", function()
8 10
9 before_each(function() 11 before_each(function()
10 test_env.setup_specs(extra_rocks) 12 test_env.setup_specs()
11 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
12 site_config = require("luarocks.site_config") 14 site_config = require("luarocks.site_config")
13 testing_paths = test_env.testing_paths
14 run = test_env.run
15 end) 15 end)
16 16
17 describe("LuaRocks config - basic tests", function() 17 describe("LuaRocks config - basic tests", function()
@@ -87,4 +87,4 @@ expose("LuaRocks config tests #blackbox #b_config", function()
87 test_env.remove_dir(testing_paths.testing_lrprefix) 87 test_env.remove_dir(testing_paths.testing_lrprefix)
88 end) 88 end)
89 end) 89 end)
90end) \ No newline at end of file 90end)