aboutsummaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
Diffstat (limited to 'spec')
-rw-r--r--spec/config_spec.lua14
1 files changed, 14 insertions, 0 deletions
diff --git a/spec/config_spec.lua b/spec/config_spec.lua
index 05da0007..98fcb24c 100644
--- a/spec/config_spec.lua
+++ b/spec/config_spec.lua
@@ -238,6 +238,20 @@ describe("LuaRocks config tests #integration", function()
238 end, finally) 238 end, finally)
239 end) 239 end)
240 240
241 it("writes a boolean config key", function()
242 test_env.run_in_tmp(function(tmpdir)
243 local myproject = tmpdir .. "/myproject"
244 lfs.mkdir(myproject)
245 lfs.chdir(myproject)
246
247 assert(run.luarocks("init"))
248 assert.truthy(run.luarocks_bool("config hooks_enabled true"))
249
250 local output = run.luarocks("config hooks_enabled")
251 assert.match("true", output)
252 end, finally)
253 end)
254
241 it("writes an array config key", function() 255 it("writes an array config key", function()
242 test_env.run_in_tmp(function(tmpdir) 256 test_env.run_in_tmp(function(tmpdir)
243 local myproject = tmpdir .. "/myproject" 257 local myproject = tmpdir .. "/myproject"