Author: kclark
Date: Tue Jun 17 18:06:01 2008
New Revision: 668945

URL: http://svn.apache.org/viewvc?rev=668945&view=rev
Log:
Spec out ProtocolException

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

Modified: incubator/thrift/trunk/lib/rb/spec/exception_spec.rb
URL: 
http://svn.apache.org/viewvc/incubator/thrift/trunk/lib/rb/spec/exception_spec.rb?rev=668945&r1=668944&r2=668945&view=diff
==============================================================================
--- incubator/thrift/trunk/lib/rb/spec/exception_spec.rb (original)
+++ incubator/thrift/trunk/lib/rb/spec/exception_spec.rb Tue Jun 17 18:06:01 
2008
@@ -112,4 +112,12 @@
       e.write(prot)
     end
   end
+
+  describe ProtocolException do
+    it "should have an accessible type" do
+      prot = ProtocolException.new(ProtocolException::SIZE_LIMIT, "message")
+      prot.type.should == ProtocolException::SIZE_LIMIT
+      prot.message.should == "message"
+    end
+  end
 end


Reply via email to