From: Kevin Clark Date: Wed, 18 Jun 2008 01:07:50 +0000 (+0000) Subject: Add spec for BinaryProtocolFactory X-Git-Tag: 0.2.0~596 X-Git-Url: https://source.supwisdom.com/gerrit/gitweb?a=commitdiff_plain;h=e977a63293c65466d8d66baef12e5ea340d6a6f3;p=common%2Fthrift.git Add spec for BinaryProtocolFactory git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@668953 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/lib/rb/spec/binaryprotocol_spec.rb b/lib/rb/spec/binaryprotocol_spec.rb index 4a9fd3cb..c3ad5e1c 100644 --- a/lib/rb/spec/binaryprotocol_spec.rb +++ b/lib/rb/spec/binaryprotocol_spec.rb @@ -272,4 +272,10 @@ class ThriftSpec < Spec::ExampleGroup @prot.read_string.should == str end end + + describe BinaryProtocolFactory do + it "should create a BinaryProtocol" do + BinaryProtocolFactory.new.get_protocol(mock("MockTransport")).should be_instance_of BinaryProtocol + end + end end