Spec out ProtocolException
authorKevin Clark <kclark@apache.org>
Wed, 18 Jun 2008 01:06:01 +0000 (01:06 +0000)
committerKevin Clark <kclark@apache.org>
Wed, 18 Jun 2008 01:06:01 +0000 (01:06 +0000)
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@668945 13f79535-47bb-0310-9956-ffa450edef68

lib/rb/spec/exception_spec.rb

index c437a63..013f612 100644 (file)
@@ -112,4 +112,12 @@ class ThriftSpec < Spec::ExampleGroup
       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