Author: kclark
Date: Tue Jun 17 18:15:53 2008
New Revision: 668998

URL: http://svn.apache.org/viewvc?rev=668998&view=rev
Log:
Squelch warning about parens and standardize require for generated code

Modified:
    incubator/thrift/trunk/lib/rb/spec/binaryprotocol_spec.rb
    incubator/thrift/trunk/lib/rb/spec/struct_spec.rb

Modified: incubator/thrift/trunk/lib/rb/spec/binaryprotocol_spec.rb
URL: 
http://svn.apache.org/viewvc/incubator/thrift/trunk/lib/rb/spec/binaryprotocol_spec.rb?rev=668998&r1=668997&r2=668998&view=diff
==============================================================================
--- incubator/thrift/trunk/lib/rb/spec/binaryprotocol_spec.rb (original)
+++ incubator/thrift/trunk/lib/rb/spec/binaryprotocol_spec.rb Tue Jun 17 
18:15:53 2008
@@ -294,7 +294,7 @@
 
   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

Modified: incubator/thrift/trunk/lib/rb/spec/struct_spec.rb
URL: 
http://svn.apache.org/viewvc/incubator/thrift/trunk/lib/rb/spec/struct_spec.rb?rev=668998&r1=668997&r2=668998&view=diff
==============================================================================
--- incubator/thrift/trunk/lib/rb/spec/struct_spec.rb (original)
+++ incubator/thrift/trunk/lib/rb/spec/struct_spec.rb Tue Jun 17 18:15:53 2008
@@ -1,5 +1,6 @@
 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


Reply via email to