Comparison

spec/net_http_server_spec.lua @ 8413:9a234e25b35b

spec/net.http.server: Add test for #1044
author Kim Alvefur <zash@zash.se>
date Wed, 22 Nov 2017 02:40:42 +0100
child 8687:ee01578c67cb
comparison
equal deleted inserted replaced
8412:0ea1e95b3a11 8413:9a234e25b35b
1 describe("net.http.server", function ()
2 local server = require "net.http.server";
3 describe("events", function ()
4 it("should work with util.helpers", function ()
5 -- See #1044
6 server.add_handler("GET host/foo/*", function () end, 0);
7 server.add_handler("GET host/foo/bar", function () end, 0);
8 local helpers = require "util.helpers";
9 assert.is.string(helpers.show_events(server._events));
10 end);
11 end);
12 end);