commit | dfaada43ad8440a3a38fdd16abe2eaa358e745d6 | [log] [tgz] |
---|---|---|
author | Kevin Clark <kclark@apache.org> | Wed Jun 18 01:06:01 2008 +0000 |
committer | Kevin Clark <kclark@apache.org> | Wed Jun 18 01:06:01 2008 +0000 |
tree | 2cbc9ad09a10eedb0ac3bcd934d726f933685b2b | |
parent | 4a2b841528130b866456181f2dd841061172e7ae [diff] |
Spec out ProtocolException git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@668945 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/lib/rb/spec/exception_spec.rb b/lib/rb/spec/exception_spec.rb index c437a63..013f612 100644 --- a/lib/rb/spec/exception_spec.rb +++ b/lib/rb/spec/exception_spec.rb
@@ -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