You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@thrift.apache.org by kc...@apache.org on 2008/06/18 03:13:28 UTC

svn commit: r668982 - /incubator/thrift/trunk/lib/rb/spec/socket_spec.rb

Author: kclark
Date: Tue Jun 17 18:13:27 2008
New Revision: 668982

URL: http://svn.apache.org/viewvc?rev=668982&view=rev
Log:
Add missing test for ServerSocket

Modified:
    incubator/thrift/trunk/lib/rb/spec/socket_spec.rb

Modified: incubator/thrift/trunk/lib/rb/spec/socket_spec.rb
URL: http://svn.apache.org/viewvc/incubator/thrift/trunk/lib/rb/spec/socket_spec.rb?rev=668982&r1=668981&r2=668982&view=diff
==============================================================================
--- incubator/thrift/trunk/lib/rb/spec/socket_spec.rb (original)
+++ incubator/thrift/trunk/lib/rb/spec/socket_spec.rb Tue Jun 17 18:13:27 2008
@@ -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