mirror of
https://github.com/valitydev/thrift.git
synced 2024-11-08 11:13:55 +00:00
4287c36aab
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
25 lines
843 B
Ruby
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
|