spec/client_spec.rb in kjess-1.1.0 vs spec/client_spec.rb in kjess-1.2.0

- old
+ new

@@ -126,11 +126,11 @@ it "raises an error if we attempt to non-tranactionaly get after an open transaction" do @client.set( "get_q", "get item 1" ) @client.set( "get_q", "get item 2" ) @client.reserve( "get_q" ) - lambda { @client.get( "get_q" ) }.must_raise KJess::Error + lambda { @client.get( "get_q" ) }.must_raise KJess::ClientError end end describe "#reserve" do @@ -290,17 +290,17 @@ end describe "connecting to a server on a port that isn't listening" do it "throws an exception" do c = KJess::Connection.new '127.0.0.1', 65521 - lambda { c.socket }.must_raise KJess::Socket::Error + lambda { c.socket }.must_raise KJess::Connection::Error end end describe "connecting to a server that isn't responding" do it "throws an exception" do c = KJess::Connection.new '127.1.1.1', 65521, :timeout => 0.5 - lambda { c.socket }.must_raise KJess::Socket::Timeout + lambda { c.socket }.must_raise KJess::Connection::Error end end describe "reading for longer than the timeout" do it "throws an exception" do