Permalink
Browse files

Merge branch 'master' of https://github.com/tazsingh/vert.x

  • Loading branch information...
purplefox committed Aug 8, 2012
2 parents 9542ad2 + 61a1f24 commit 9a615bbe2d0a3a4968c62679614ff060c37b6e8c
@@ -42,7 +42,7 @@
JRubyVerticle(String scriptName, ClassLoader cl) {
this.container = new ScriptingContainer(LocalContextScope.SINGLETHREAD);
- container.setCompatVersion(CompatVersion.RUBY1_8);
+ container.setCompatVersion(CompatVersion.RUBY1_9);
container.setClassLoader(cl);
//Prevent JRuby from logging errors to stderr - we want to log ourselves
container.setErrorWriter(new NullWriter());
@@ -35,7 +35,7 @@ def register(test_name, &test_handler)
def register_all(object)
methods = object.private_methods
methods.each do |meth|
- if meth.start_with? 'test_'
+ if meth.to_s.start_with? 'test_'
register(meth) {
object.method(meth).call
}
@@ -63,4 +63,4 @@ def TestUtils.buffers_equal(buff1, buff2)
def check_context
@j_tu.checkContext
end
-end
+end

0 comments on commit 9a615bb

Please sign in to comment.