Skip to content

Commit

Permalink
fix the version mismatched on BC integration test
Browse files Browse the repository at this point in the history
which was a copy and paste error when introducing the self.first.class.laoder switch
  • Loading branch information
mkristian committed Feb 1, 2015
1 parent 1310672 commit 0cfc73f
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -25,8 +25,8 @@ public void java() {
public void ruby(){
ScriptingContainer container = new ScriptingContainer();
container.setSelfFirstClassloader(true);
Object result = container.parse( "gem 'bouncy-castle-java', '1.5.0146.1'; require 'bouncy-castle-java'; Java::OrgBouncycastleJceProvider::BouncyCastleProvider.new.info").run();
assertEquals( "BouncyCastle Security Provider v1.46", result.toString() );
Object result = container.parse( "gem 'bouncy-castle-java'; require 'bouncy-castle-java'; Java::OrgBouncycastleJceProvider::BouncyCastleProvider.new.info").run();
assertEquals( "BouncyCastle Security Provider v1.47", result.toString() );

result = container.parse("JRuby.runtime.jruby_class_loader").run();
assertEquals("org.jruby.util.SelfFirstJRubyClassLoader", result.toString().replaceFirst("@.*$", ""));
Expand Down

0 comments on commit 0cfc73f

Please sign in to comment.