fParseState.clearEditState();
}
public void testClassWithFieldAndMethod() throws Exception
{
String source = "class Person\n\tattr_reader :name, :age\n\tdef initialize(name, age)\n\t\t@name, @age = name, age\n\tend\nend";
<BUG>fParseState.setEditState(source, source, 0, 0);
IParseNode result = fParser.parse(fParseState);</BUG>
IParseNode[] classes = result.getChildren();
assertEquals(1, classes.length); // one class declaration
assertEquals(IRubyElement.TYPE, classes[0].getNodeType()); // class type

fParseState.clearEditState();
}
public void testClassWithFieldAndMethod() throws Exception
{
String source = "class Person\n\tattr_reader :name, :age\n\tdef initialize(name, age)\n\t\t@name, @age = name, age\n\tend\nend";
fParseState.setEditState(source, 0);
IParseNode result = fParser.parse(fParseState);
IParseNode[] classes = result.getChildren();
assertEquals(1, classes.length); // one class declaration
assertEquals(IRubyElement.TYPE, classes[0].getNodeType()); // class type
