assertEquals(true, method.isSingleton());
}
public void testRequire() throws Exception
{
String source = "require 'yaml'";
<BUG>fParseState.setEditState(source, source, 0, 0);
IParseNode result = fParser.parse(fParseState);</BUG>
IParseNode[] children = result.getChildren();
assertEquals(1, children.length); // the container for require/load statements
assertEquals(IRubyElement.IMPORT_CONTAINER, children[0].getNodeType());

assertEquals(true, method.isSingleton());
}
public void testRequire() throws Exception
{
String source = "require 'yaml'";
fParseState.setEditState(source, 0);
IParseNode result = fParser.parse(fParseState);
IParseNode[] children = result.getChildren();
assertEquals(1, children.length); // the container for require/load statements
assertEquals(IRubyElement.IMPORT_CONTAINER, children[0].getNodeType());
