null values can shadow parent context now. Improve test a little.

This commit is contained in:
Tom Insam
2012-08-22 15:19:00 +01:00
parent 718218098f
commit 2b337b8770
3 changed files with 7 additions and 6 deletions
@@ -357,7 +357,8 @@ public class MustacheTest
}
@Test public void testShadowedContextWithNull () {
test("outer", "{{foo}}{{#inner}}{{foo}}{{/inner}}",
test(Mustache.compiler().nullValue("(null)"),
"outer(null)", "{{foo}}{{#inner}}{{foo}}{{/inner}}",
context("foo", "outer", "inner", context("foo", null))
);
}