Add missing test for ServerSocket
authorKevin Clark <kclark@apache.org>
Wed, 18 Jun 2008 01:13:27 +0000 (01:13 +0000)
committerKevin Clark <kclark@apache.org>
Wed, 18 Jun 2008 01:13:27 +0000 (01:13 +0000)
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@668982 13f79535-47bb-0310-9956-ffa450edef68

lib/rb/spec/socket_spec.rb

index 4a7dda9..a98d622 100644 (file)
@@ -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