nitunit: use `intern` constructor
authorAlexandre Terrasa <alexandre@moz-code.org>
Mon, 19 Jun 2017 16:10:25 +0000 (12:10 -0400)
committerAlexandre Terrasa <alexandre@moz-code.org>
Tue, 15 Aug 2017 18:12:16 +0000 (14:12 -0400)
Signed-off-by: Alexandre Terrasa <alexandre@moz-code.org>

src/testing/testing_suite.nit

index 1a43bd3..43ac8f5 100644 (file)
@@ -288,7 +288,7 @@ class TestCase
                if test_method.mproperty.is_toplevel then
                        file.addn "\t{name}"
                else
-                       file.addn "\tvar subject = new {test_method.mclassdef.name}.nitunit"
+                       file.addn "\tvar subject = new {test_method.mclassdef.name}.intern"
                        for mmethod in before do
                                file.addn "\tsubject.{mmethod.name}"
                        end