Add missing test for ServerSocket


git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@668982 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/lib/rb/spec/socket_spec.rb b/lib/rb/spec/socket_spec.rb
index 4a7dda9..a98d622 100644
--- a/lib/rb/spec/socket_spec.rb
+++ b/lib/rb/spec/socket_spec.rb
@@ -97,5 +97,9 @@
       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