thrift/lib/rb/spec/binaryprotocolaccelerated_spec.rb
Bryan Duxbury 4287c36aab THRIFT-312. rb: Ruby unit tests fail due to change in BinaryProtocolAccelerated interface
Couldn't find any broken tests anymore, but did remove some dead code that had been commented in the binary protocol spec.



git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@757610 13f79535-47bb-0310-9956-ffa450edef68
2009-03-24 00:08:45 +00:00

25 lines
843 B
Ruby

require File.dirname(__FILE__) + '/spec_helper'
require 'thrift/protocol/binaryprotocolaccelerated'
require File.dirname(__FILE__) + '/binaryprotocol_spec_shared'
require File.dirname(__FILE__) + '/gen-rb/ThriftSpec_types'
class ThriftBinaryProtocolAcceleratedSpec < Spec::ExampleGroup
include Thrift
describe Thrift::BinaryProtocolAccelerated do
# since BinaryProtocolAccelerated should be directly equivalent to
# BinaryProtocol, we don't need any custom specs!
it_should_behave_like 'a binary protocol'
def protocol_class
BinaryProtocolAccelerated
end
end
describe BinaryProtocolAcceleratedFactory do
it "should create a BinaryProtocolAccelerated" do
BinaryProtocolAcceleratedFactory.new.get_protocol(mock("MockTransport")).should be_instance_of(BinaryProtocolAccelerated)
end
end
end