Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

fix up one or two things related to pull req 25

all tests passing locally
  • Loading branch information...
commit ef5abbd9a95c23f927bef49fa8c04677855a33a2 1 parent b28eafd
@slyphon slyphon authored
Showing with 7 additions and 4 deletions.
  1. +1 −1  java/java_base.rb
  2. +6 −3 spec/shared/connection_examples.rb
View
2  java/java_base.rb
@@ -324,7 +324,7 @@ def get_children(req_id, path, callback, watcher)
def add_auth(req_id, scheme, cert)
handle_keeper_exception do
jzk.addAuthInfo(scheme, cert.to_java_bytes)
- Code::OK
+ Code::Ok
end
end
View
9 spec/shared/connection_examples.rb
@@ -277,9 +277,12 @@
it %[should return ZOK if everything goes swimingly] do
result = zk.add_auth(:scheme => 'digest', :cert => 'test_user:test_password')
- # Er, there's likely a better way to do this...
- i = result[:rc].respond_to?(:intValue) ? result[:rc].intValue : i
- i.should == Zookeeper::ZOK
+ rv = result[:rc]
+
+ # gahhh, this shouldn't be like this.... :P
+ rv = rv.respond_to?(:intValue) ? rv.intValue : rv
+
+ rv.should == Zookeeper::ZOK
end
end

0 comments on commit ef5abbd

Please sign in to comment.
Something went wrong with that request. Please try again.