Skip to content

Commit

Permalink
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -13,9 +13,9 @@
public class ConstantCompilationTest extends TestCase{
public void testConstantCompilation(){
ScriptingContainer c = new ScriptingContainer(LocalContextScope.SINGLETHREAD, LocalVariableBehavior.PERSISTENT);
c.setCompatVersion(CompatVersion.RUBY1_8);
c.setCompatVersion(CompatVersion.RUBY1_9);
c.setCompileMode(CompileMode.FORCE);
EmbedEvalUnit unit = c.parse("RUBY_VERSION", 0);
assertEquals("1.8.7", unit.run().toString());
assertEquals("1.9.3", unit.run().toString());
}
}

0 comments on commit a80096f

Please sign in to comment.