nitunit: md files do not need a location, just the filename
authorJean Privat <jean@pryen.org>
Thu, 2 Jun 2016 21:38:21 +0000 (17:38 -0400)
committerJean Privat <jean@pryen.org>
Thu, 2 Jun 2016 21:58:34 +0000 (17:58 -0400)
Signed-off-by: Jean Privat <jean@pryen.org>

src/testing/testing_doc.nit

index 0c6d686..723e717 100644 (file)
@@ -547,7 +547,7 @@ redef class ModelBuilder
        fun test_mdoc(mdoc: MDoc): HTMLTag
        do
                var ts = new HTMLTag("testsuite")
-               var file = mdoc.location.to_s
+               var file = mdoc.location.file.filename
 
                toolcontext.info("nitunit: doc-unit file {file}", 2)