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
diff --git a/lib/rb/spec/nonblockingserver_spec.rb b/lib/rb/spec/nonblockingserver_spec.rb
index bf390bd..04c569a 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 874ed2d..9498d2a 100644
--- a/lib/rb/spec/spec_helper.rb
+++ b/lib/rb/spec/spec_helper.rb
@@ -13,6 +13,7 @@
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 44f0b27..6ff9bdb 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 8a739f7..15ffe5c 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