diff --git a/compiler/src/test/java/com/github/mustachejava/SpecTest.java b/compiler/src/test/java/com/github/mustachejava/SpecTest.java index 322cff16..11171213 100644 --- a/compiler/src/test/java/com/github/mustachejava/SpecTest.java +++ b/compiler/src/test/java/com/github/mustachejava/SpecTest.java @@ -102,7 +102,7 @@ public String apply(String input) { StringWriter writer = new StringWriter(); String json = data.toString(); if (json.startsWith("{")) { - compile.execute(writer, new Object[]{functionMap.get(file), new ObjectMapper().readValue(json, Map.class)}); + compile.execute(writer, new Object[]{new ObjectMapper().readValue(json, Map.class), functionMap.get(file)}); } else if (json.startsWith("[")) { compile.execute(writer, new Object[]{functionMap.get(file), new ObjectMapper().readValue(json, List.class)}); } else {