Skip to content

Commit

Permalink
forgot a test, fix documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
slyphon committed Apr 28, 2012
1 parent 78f4bf7 commit e475cdb
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/zk.rb
Expand Up @@ -115,7 +115,8 @@ def self.logger=(logger)
# contains a chroot path, we raise an `ArgumentError`
#
# * if you don't like this for some reason, you can always use
# {ZK::Client::Threaded.new} directly. You probably also hate unicorns.
# {ZK::Client::Threaded.initialize Threaded.new} directly. You probably
# also hate happiness and laughter.
#
# @raise [ChrootPathDoesNotExistError] if a chroot path is specified,
# `:chroot` is `:check`, and the path does not exist.
Expand Down
6 changes: 6 additions & 0 deletions spec/zk/module_spec.rb
Expand Up @@ -12,6 +12,12 @@
end
end

describe %[with a chrooted connection string and a :chroot => '/path'] do
it %[should raise an ArgumentError] do
lambda { @zk = ZK.new('localhost:2181/zktest', :chroot => '/zktest') }.should raise_error(ArgumentError)
end
end

describe 'with no arguments' do
before { @zk = ZK.new }

Expand Down

0 comments on commit e475cdb

Please sign in to comment.