Permalink
Browse files

Make sure the method is a String

  • Loading branch information...
1 parent 75a7816 commit 61a1f2455b9ce9373095aeb44789a2b431e53cad @tazsingh tazsingh committed Jul 31, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 vertx-testframework/src/main/ruby_scripts/test_utils.rb
@@ -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 61a1f24

Please sign in to comment.