tests: fix tests for model filters
authorAlexandre Terrasa <alexandre@moz-code.org>
Mon, 16 Oct 2017 23:52:33 +0000 (19:52 -0400)
committerAlexandre Terrasa <alexandre@moz-code.org>
Fri, 10 Nov 2017 17:29:12 +0000 (12:29 -0500)
Signed-off-by: Alexandre Terrasa <alexandre@moz-code.org>

src/nitdoc.nit
tests/nitdoc.args

index 9d31058..159c771 100644 (file)
@@ -46,7 +46,10 @@ private class Nitdoc
                var accept_attribute = true
                if toolcontext.opt_no_attributes.value then accept_attribute = false
 
-               var filters = new ModelFilter(min_visibility, accept_attribute = accept_attribute)
+               var filters = new ModelFilter(
+                       min_visibility,
+                       accept_attribute = accept_attribute,
+                       accept_fictive = false)
                var doc = new DocModel(mainmodule.model, mainmodule, filters)
 
                var phases = [
index ee5fd03..c643d3d 100644 (file)
@@ -1,4 +1,4 @@
 module_1.nit -d $WRITE
 base_attr_nullable.nit -d $WRITE
---private base_attr_nullable.nit -d $WRITE
+--private base_attr_nullable.nit --no-attributes -d $WRITE
 --no-render --test test_prog -d $WRITE