spec/zk/mongoid_spec.rb in zk-1.0.0 vs spec/zk/mongoid_spec.rb in zk-1.1.0

- old
+ new

@@ -1,9 +1,11 @@ require 'spec_helper' describe ZK::Mongoid::Locking do + include_context 'connection opts' + before do - ZK::Mongoid::Locking.zk_lock_pool = ZK.new_pool('localhost:2181', :min_clients => 1, :max_clients => 5) + ZK::Mongoid::Locking.zk_lock_pool = ZK.new_pool(connection_host, :min_clients => 1, :max_clients => 5) @doc = BogusMongoid.new @other_doc = BogusMongoid.new end