assertMethods(rubyClass, new String[] { "name()", "age()", "initialize(name, age)" });
}
public void testModuleWithConst() throws Exception
{
String source = "module Mod\n\tinclude Math\n\tCONST = 1\nend";
<BUG>fParseState.setEditState(source, source, 0, 0);
IParseNode result = fParser.parse(fParseState);</BUG>
IParseNode[] children = result.getChildren();
assertEquals(1, children.length); // one module declaration
assertEquals(IRubyElement.TYPE, children[0].getNodeType());

assertMethods(rubyClass, new String[] { "name()", "age()", "initialize(name, age)" });
}
public void testModuleWithConst() throws Exception
{
String source = "module Mod\n\tinclude Math\n\tCONST = 1\nend";
fParseState.setEditState(source, 0);
IParseNode result = fParser.parse(fParseState);
IParseNode[] children = result.getChildren();
assertEquals(1, children.length); // one module declaration
assertEquals(IRubyElement.TYPE, children[0].getNodeType());
