From f7121622dd5969875519008922b6498aa90b4036 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Alexis=20Laferri=C3=A8re?= Date: Sun, 7 May 2017 20:22:19 -0400 Subject: [PATCH] app.nit: add default behavior to `TextAsset::load` for unit tests MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Alexis Laferrière --- lib/app/assets.nit | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/app/assets.nit b/lib/app/assets.nit index 8c2dc5c..b67bcd2 100644 --- a/lib/app/assets.nit +++ b/lib/app/assets.nit @@ -37,7 +37,7 @@ class TextAsset redef var to_s = load is lazy # Load this asset - fun load: String is abstract + fun load: String do return "" # Error on the last call to `load`, if any var error: nullable Error = null -- 1.7.9.5