rb: Add spec for shutting down NonblockingServer in response to a client message


git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@669002 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/lib/rb/spec/nonblockingserver_spec.rb b/lib/rb/spec/nonblockingserver_spec.rb
index 5850413..773fc03 100644
--- a/lib/rb/spec/nonblockingserver_spec.rb
+++ b/lib/rb/spec/nonblockingserver_spec.rb
@@ -163,4 +163,11 @@
     @server.shutdown(1, true)
     @server_thread.join(3).should_not be_nil
   end
+
+  it "should allow shutting down in response to a message" do
+    client = setup_client
+    client.greeting(true).should == Hello.new
+    client.shutdown
+    @server_thread.join(2).should_not be_nil
+  end
 end