From c83d4451b7ad8b654b1e7341a9d6100f553c601b Mon Sep 17 00:00:00 2001 From: Kevin Clark Date: Wed, 18 Jun 2008 01:18:21 +0000 Subject: [PATCH] rb: Add the path to gen-rb to $: in spec_helper instead of in multiple different specs git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@669017 13f79535-47bb-0310-9956-ffa450edef68 --- lib/rb/spec/nonblockingserver_spec.rb | 1 - lib/rb/spec/spec_helper.rb | 1 + lib/rb/spec/struct_spec.rb | 1 - lib/rb/spec/types_spec.rb | 1 - 4 files changed, 1 insertion(+), 3 deletions(-) diff --git a/lib/rb/spec/nonblockingserver_spec.rb b/lib/rb/spec/nonblockingserver_spec.rb index bf390bd3..04c569a7 100644 --- a/lib/rb/spec/nonblockingserver_spec.rb +++ b/lib/rb/spec/nonblockingserver_spec.rb @@ -1,6 +1,5 @@ require File.dirname(__FILE__) + '/spec_helper' require 'thrift/server/nonblockingserver' -$:.unshift File.dirname(__FILE__) + '/gen-rb' require 'NonblockingService' class ThriftNonblockingServerSpec < Spec::ExampleGroup diff --git a/lib/rb/spec/spec_helper.rb b/lib/rb/spec/spec_helper.rb index 874ed2d1..9498d2a9 100644 --- a/lib/rb/spec/spec_helper.rb +++ b/lib/rb/spec/spec_helper.rb @@ -13,6 +13,7 @@ module Thrift end require File.dirname(__FILE__) + '/../lib/thrift' +$:.unshift File.dirname(__FILE__) + "/gen-rb" class Object # tee is a useful method, so let's let our tests have it diff --git a/lib/rb/spec/struct_spec.rb b/lib/rb/spec/struct_spec.rb index 44f0b277..6ff9bdbf 100644 --- a/lib/rb/spec/struct_spec.rb +++ b/lib/rb/spec/struct_spec.rb @@ -1,5 +1,4 @@ require File.dirname(__FILE__) + '/spec_helper' -$:.unshift File.dirname(__FILE__) + "/gen-rb" require "ThriftSpec_types" class ThriftStructSpec < Spec::ExampleGroup diff --git a/lib/rb/spec/types_spec.rb b/lib/rb/spec/types_spec.rb index 8a739f76..15ffe5c2 100644 --- a/lib/rb/spec/types_spec.rb +++ b/lib/rb/spec/types_spec.rb @@ -1,5 +1,4 @@ require File.dirname(__FILE__) + '/spec_helper' -$:.unshift File.dirname(__FILE__) + "/gen-rb" require 'ThriftSpec_types' class ThriftTypesSpec < Spec::ExampleGroup -- 2.17.1