Permalink
Browse files

sanity test for zookeeper base, odds and ends for various other stuff

  • Loading branch information...
1 parent c57f3d4 commit b40ced91667bac002c6c6df29551d6f8a6ae1148 @slyphon slyphon committed May 11, 2012
Showing with 20 additions and 0 deletions.
  1. +1 −0 .ctags_paths
  2. +3 −0 Rakefile
  3. +16 −0 spec/ext/zookeeper_base_spec.rb
View
@@ -0,0 +1 @@
+~/vendor/ruby/*.{c,h}
View
@@ -100,3 +100,6 @@ end
task 'spec:run' => 'build:clean' unless defined?(::JRUBY_VERSION)
+# because i'm a creature of habit
+task 'mb:test_all' => 'zk:test_all'
+
@@ -0,0 +1,16 @@
+require 'spec_helper'
+
+describe Zookeeper::ZookeeperBase do
+ before do
+ @zk = described_class.new(Zookeeper.default_cnx_str)
+ end
+
+ after do
+ @zk.close unless @zk.closed?
+ end
+
+ it %[should have an original_pid assigned] do
+ @zk.original_pid.should == Process.pid
+ end
+end
+

0 comments on commit b40ced9

Please sign in to comment.