Skip to content

Commit 3cf1ae6

Browse files
committed
change json parser for tests to lunajson
harningt/luajson#51
1 parent a8f831f commit 3cf1ae6

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

multipart-post.test.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ local enc = (require "multipart-post").encode
77
local J
88
do -- Find a JSON parser
99
local ok, json = pcall(require, "cjson")
10-
if not ok then ok, json = pcall(require, "json") end
10+
if not ok then ok, json = pcall(require, "lunajson") end
1111
J = json.decode
1212
assert(ok and J, "no JSON parser found :(")
1313
end

rockspec/multipart-post-scm-1.rockspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ build = {
2929

3030
test_dependencies = {
3131
"cwtest",
32-
"luajson",
32+
"lunajson",
3333
}
3434

3535
test = {

0 commit comments

Comments
 (0)