fix unit test with latest busted

This commit is contained in:
chrox
2015-03-03 18:00:38 +08:00
parent e74d1fa557
commit 4053b5adac
4 changed files with 7 additions and 6 deletions

View File

@@ -3,6 +3,7 @@ local DocumentRegistry = require("document/documentregistry")
describe("PDF document module", function()
local sample_pdf = "spec/front/unit/data/tall.pdf"
local doc
it("should open document", function()
doc = DocumentRegistry:openDocument(sample_pdf)
assert.truthy(doc)
@@ -38,6 +39,7 @@ end)
describe("EPUB document module", function()
local sample_epub = "spec/front/unit/data/leaves.epub"
local doc
it("should open document", function()
doc = DocumentRegistry:openDocument(sample_epub)
assert.truthy(doc)