@Test
public void testArray() throws IOException {
ScriptingContainer sc = new ScriptingContainer();
Object context = sc.runScriptlet("class Test\ndef test()\n [\"fred\",\"fred\"]\nend\nend\nTest.new\n");
DefaultMustacheFactory mf = new DefaultMustacheFactory();
mf.setObjectHandler(new JRubyObjectHandler());
Mustache m = mf.compile(new StringReader("{{#test}}{{.}}{{/test}}"), "test");
Writer writer = new StringWriter();
writer = m.execute(writer, context);
writer.close();
assertEquals("fredfred", writer.toString());