Rename spec wrapper classes to prevent cross-pollination of specs. Require rspec...
authorKevin Clark <kclark@apache.org>
Wed, 18 Jun 2008 01:08:05 +0000 (01:08 +0000)
committerKevin Clark <kclark@apache.org>
Wed, 18 Jun 2008 01:08:05 +0000 (01:08 +0000)
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@668954 13f79535-47bb-0310-9956-ffa450edef68

lib/rb/spec/binaryprotocol_spec.rb
lib/rb/spec/client_spec.rb
lib/rb/spec/exception_spec.rb
lib/rb/spec/processor_spec.rb
lib/rb/spec/protocol_spec.rb
lib/rb/spec/spec_helper.rb

index c3ad5e1..c152d2a 100644 (file)
@@ -1,7 +1,7 @@
 require File.dirname(__FILE__) + '/spec_helper'
 require 'thrift/protocol/binaryprotocol'
 
-class ThriftSpec < Spec::ExampleGroup
+class ThriftBinaryProtocolSpec < Spec::ExampleGroup
   include Thrift
 
   describe BinaryProtocol do
index f8e86e4..b92bbec 100644 (file)
@@ -1,6 +1,6 @@
 require File.dirname(__FILE__) + '/spec_helper'
 
-class ThriftSpec < Spec::ExampleGroup
+class ThriftClientSpec < Spec::ExampleGroup
   include Thrift
 
   class ClientSpec
@@ -12,7 +12,7 @@ class ThriftSpec < Spec::ExampleGroup
     @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)
index 013f612..bbcf5e8 100644 (file)
@@ -1,6 +1,6 @@
 require File.dirname(__FILE__) + '/spec_helper'
 
-class ThriftSpec < Spec::ExampleGroup
+class ThriftExceptionSpec < Spec::ExampleGroup
   include Thrift
 
   describe Exception do
index 24440e4..6bf2a45 100644 (file)
@@ -1,6 +1,6 @@
 require File.dirname(__FILE__) + '/spec_helper'
 
-class ThriftSpec < Spec::ExampleGroup
+class ThriftProcessorSpec < Spec::ExampleGroup
   include Thrift
 
   class ProcessorSpec
index 6c08c43..0dbe869 100644 (file)
@@ -1,6 +1,6 @@
 require File.dirname(__FILE__) + '/spec_helper'
 
-class ThriftSpec < Spec::ExampleGroup
+class ThriftProtocolSpec < Spec::ExampleGroup
   include Thrift
 
   before(:each) do
index fc15741..0c7136b 100644 (file)
@@ -1,4 +1,6 @@
 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