From 0d6007c717057b2dcc2e4a3b5d6dcfbbdc36e61b Mon Sep 17 00:00:00 2001 From: Kevin Clark Date: Wed, 18 Jun 2008 01:13:27 +0000 Subject: [PATCH] Add missing test for ServerSocket git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@668982 13f79535-47bb-0310-9956-ffa450edef68 --- lib/rb/spec/socket_spec.rb | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/rb/spec/socket_spec.rb b/lib/rb/spec/socket_spec.rb index 4a7dda90..a98d6220 100644 --- a/lib/rb/spec/socket_spec.rb +++ b/lib/rb/spec/socket_spec.rb @@ -97,5 +97,9 @@ class ThriftSocketSpec < Spec::ExampleGroup handle.should_receive(:close) @socket.close end + + it "should return nil when accepting if there is no handle" do + @socket.accept.should be_nil + end end end -- 2.17.1