assertFields(module, new String[] { "CONST" });
}
public void testSingletonMethod() throws Exception
{
String source = "def foo.size\n\t0\nend";
<BUG>fParseState.setEditState(source, source, 0, 0);
IParseNode result = fParser.parse(fParseState);</BUG>
IParseNode[] children = result.getChildren();
assertEquals(1, children.length);
assertEquals(IRubyElement.METHOD, children[0].getNodeType());

assertFields(module, new String[] { "CONST" });
}
public void testSingletonMethod() throws Exception
{
String source = "def foo.size\n\t0\nend";
fParseState.setEditState(source, 0);
IParseNode result = fParser.parse(fParseState);
IParseNode[] children = result.getChildren();
assertEquals(1, children.length);
assertEquals(IRubyElement.METHOD, children[0].getNodeType());
