git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@668998
13f79535-47bb-0310-9956-
ffa450edef68
describe BinaryProtocolFactory do
it "should create a BinaryProtocol" do
- BinaryProtocolFactory.new.get_protocol(mock("MockTransport")).should be_instance_of BinaryProtocol
+ BinaryProtocolFactory.new.get_protocol(mock("MockTransport")).should be_instance_of(BinaryProtocol)
end
end
end
require File.dirname(__FILE__) + '/spec_helper'
-require File.dirname(__FILE__) + "/gen-rb/ThriftSpec_types"
+$:.unshift File.dirname(__FILE__) + "/gen-rb"
+require "ThriftSpec_types"
class ThriftStructSpec < Spec::ExampleGroup
include Thrift