From e977a63293c65466d8d66baef12e5ea340d6a6f3 Mon Sep 17 00:00:00 2001 From: Kevin Clark Date: Wed, 18 Jun 2008 01:07:50 +0000 Subject: [PATCH] Add spec for BinaryProtocolFactory git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@668953 13f79535-47bb-0310-9956-ffa450edef68 --- lib/rb/spec/binaryprotocol_spec.rb | 6 ++++++ 1 file changed, 6 insertions(+) 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 -- 2.17.1