aboutsummaryrefslogtreecommitdiff
path: root/spec/quick
diff options
context:
space:
mode:
Diffstat (limited to 'spec/quick')
-rw-r--r--spec/quick/config.q38
1 files changed, 38 insertions, 0 deletions
diff --git a/spec/quick/config.q b/spec/quick/config.q
index d6230567..dd2dcd00 100644
--- a/spec/quick/config.q
+++ b/spec/quick/config.q
@@ -95,3 +95,41 @@ Warning: Failed finding Lua header lua.h (searched at /some/bad/path). You may n
95 95
96LuaRocks may not work correctly when building C modules using this configuration. 96LuaRocks may not work correctly when building C modules using this configuration.
97-------------------------------------------------------------------------------- 97--------------------------------------------------------------------------------
98
99
100
101================================================================================
102TEST: reports when getting a falsy boolean variable
103
104RUN: luarocks config local_by_default
105
106STDOUT:
107--------------------------------------------------------------------------------
108false
109--------------------------------------------------------------------------------
110
111
112
113================================================================================
114TEST: reports when setting a falsy boolean variable
115
116RUN: luarocks config local_by_default true
117
118STDOUT:
119--------------------------------------------------------------------------------
120Wrote
121local_by_default = true
122--------------------------------------------------------------------------------
123
124
125
126================================================================================
127TEST: reports when getting an unknown variable
128
129RUN: luarocks config foo
130EXIT: 1
131
132STDERR:
133--------------------------------------------------------------------------------
134Error: Unknown entry foo
135--------------------------------------------------------------------------------