You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

17 lines
478 B
Lua

local mock_request = require("lapis.spec.request").mock_request
local app = require("app")
describe("lapischan", function()
require("lapis.spec").use_test_env()
setup(function()
require("lapis.db.migrations").run_migrations(require("migrations"))
end)
it("loads install page", function()
local status, body = mock_request(app, "/")
assert.same(200, status)
assert.truthy(body:find("Install Lapis-chan", 1, true))
end)
end)