Add spec for BinaryProtocolFactory
authorKevin Clark <kclark@apache.org>
Wed, 18 Jun 2008 01:07:50 +0000 (01:07 +0000)
committerKevin Clark <kclark@apache.org>
Wed, 18 Jun 2008 01:07:50 +0000 (01:07 +0000)
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@668953 13f79535-47bb-0310-9956-ffa450edef68

lib/rb/spec/binaryprotocol_spec.rb

index 4a9fd3c..c3ad5e1 100644 (file)
@@ -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