require File.dirname(__FILE__) + '/spec_helper'
require 'thrift/protocol/binaryprotocol'
-class ThriftSpec < Spec::ExampleGroup
+class ThriftBinaryProtocolSpec < Spec::ExampleGroup
include Thrift
describe BinaryProtocol do
require File.dirname(__FILE__) + '/spec_helper'
-class ThriftSpec < Spec::ExampleGroup
+class ThriftClientSpec < Spec::ExampleGroup
include Thrift
class ClientSpec
@client = ClientSpec.new(@prot)
end
- describe "Client" do
+ describe Client do
it "should re-use iprot for oprot if not otherwise specified" do
@client.instance_variable_get(:'@iprot').should eql(@prot)
@client.instance_variable_get(:'@oprot').should eql(@prot)
require File.dirname(__FILE__) + '/spec_helper'
-class ThriftSpec < Spec::ExampleGroup
+class ThriftExceptionSpec < Spec::ExampleGroup
include Thrift
describe Exception do
require File.dirname(__FILE__) + '/spec_helper'
-class ThriftSpec < Spec::ExampleGroup
+class ThriftProcessorSpec < Spec::ExampleGroup
include Thrift
class ProcessorSpec
require File.dirname(__FILE__) + '/spec_helper'
-class ThriftSpec < Spec::ExampleGroup
+class ThriftProtocolSpec < Spec::ExampleGroup
include Thrift
before(:each) do
require 'rubygems'
+# require at least 1.1.4 to fix a bug with describing Modules
+gem 'rspec', '>= 1.1.4'
require 'spec'
# turn on deprecation so we can test it