aboutsummaryrefslogtreecommitdiff
path: root/spec/util/mock-server.lua
diff options
context:
space:
mode:
authorHisham Muhammad <hisham@gobolinux.org>2018-03-30 15:21:05 -0300
committerHisham Muhammad <hisham@gobolinux.org>2018-03-30 19:52:17 -0300
commit43adf5df7465c39a9f6fc735654aabac991cabb5 (patch)
tree2b8a4e93bc2334a5f546cba9dcad4cb99332576e /spec/util/mock-server.lua
parentad4b4b29a7af9c8df859781dab51ef38a9a9895d (diff)
downloadluarocks-43adf5df7465c39a9f6fc735654aabac991cabb5.tar.gz
luarocks-43adf5df7465c39a9f6fc735654aabac991cabb5.tar.bz2
luarocks-43adf5df7465c39a9f6fc735654aabac991cabb5.zip
Tests: make sure tests run from testrun/
Diffstat (limited to 'spec/util/mock-server.lua')
-rw-r--r--spec/util/mock-server.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/util/mock-server.lua b/spec/util/mock-server.lua
index 244aceae..77d32927 100644
--- a/spec/util/mock-server.lua
+++ b/spec/util/mock-server.lua
@@ -70,7 +70,7 @@ server:add_resource("/file/{name:[^/]+}", {
70 path = "/", 70 path = "/",
71 produces = "text/plain", 71 produces = "text/plain",
72 handler = function(query, name) 72 handler = function(query, name)
73 local fd = io.open("spec/fixtures/"..name, "r") 73 local fd = io.open("../spec/fixtures/"..name, "r")
74 if not fd then 74 if not fd then
75 return restserver.response():status(404) 75 return restserver.response():status(404)
76 end 76 end