lib/test_suite: update Sys class to nitunit fix
authorAlexandre Terrasa <alexandre@moz-code.org>
Fri, 3 Feb 2017 06:55:34 +0000 (01:55 -0500)
committerAlexandre Terrasa <alexandre@moz-code.org>
Fri, 3 Feb 2017 06:55:34 +0000 (01:55 -0500)
We need the private method so we can compile the test case with intrude.

Signed-off-by: Alexandre Terrasa <alexandre@moz-code.org>

lib/test_suite.nit

index 6261eea..e7b6f3a 100644 (file)
@@ -38,14 +38,25 @@ class TestSuite
        fun after_test do end
 end
 
-# Method called before each test-suite.
-#
-# Redefine this method to factorize code that have to be
-# executed before every test suite.
-fun before_module do end
+redef class Sys
+       # Internal empty init.
+       private init nitunit do end
 
-# Method called after each test-suite.
-#
-# Redefine this method to factorize code that have to be
-# executed after every test suite.
-fun after_module do end
+       # No before test for the module
+       private fun before_test do end
+
+       # No after test for the module
+       private fun after_test do end
+
+       # Method called before each test-suite.
+       #
+       # Redefine this method to factorize code that have to be
+       # executed before every test suite.
+       fun before_module do end
+
+       # Method called after each test-suite.
+       #
+       # Redefine this method to factorize code that have to be
+       # executed after every test suite.
+       fun after_module do end
+end