# under the License.
#
-require File.dirname(__FILE__) + '/spec_helper'
+require File.expand_path("#{File.dirname(__FILE__)}/spec_helper")
class ThriftBaseProtocolSpec < Spec::ExampleGroup
include Thrift
# under the License.
#
-require File.dirname(__FILE__) + '/spec_helper'
+require File.expand_path("#{File.dirname(__FILE__)}/spec_helper")
class ThriftBaseTransportSpec < Spec::ExampleGroup
include Thrift
# under the License.
#
-require File.dirname(__FILE__) + '/spec_helper'
-require File.dirname(__FILE__) + '/binary_protocol_spec_shared'
+require File.expand_path("#{File.dirname(__FILE__)}/spec_helper")
+require File.expand_path("#{File.dirname(__FILE__)}/binary_protocol_spec_shared")
if defined? Thrift::BinaryProtocolAccelerated
# under the License.
#
-require File.dirname(__FILE__) + '/spec_helper'
-require File.dirname(__FILE__) + '/binary_protocol_spec_shared'
+require File.expand_path("#{File.dirname(__FILE__)}/spec_helper")
+require File.expand_path("#{File.dirname(__FILE__)}/binary_protocol_spec_shared")
class ThriftBinaryProtocolSpec < Spec::ExampleGroup
include Thrift
# under the License.
#
-require File.dirname(__FILE__) + '/spec_helper'
+require File.expand_path("#{File.dirname(__FILE__)}/spec_helper")
shared_examples_for 'a binary protocol' do
before(:each) do
# under the License.
#
-require File.dirname(__FILE__) + '/spec_helper'
+require File.expand_path("#{File.dirname(__FILE__)}/spec_helper")
class ThriftClientSpec < Spec::ExampleGroup
include Thrift
# under the License.
#
-require File.dirname(__FILE__) + '/spec_helper'
+require File.expand_path("#{File.dirname(__FILE__)}/spec_helper")
describe Thrift::CompactProtocol do
TESTS = {
# under the License.
#
-require File.dirname(__FILE__) + '/spec_helper'
+require File.expand_path("#{File.dirname(__FILE__)}/spec_helper")
class ThriftExceptionSpec < Spec::ExampleGroup
include Thrift
# under the License.
#
-require File.dirname(__FILE__) + '/spec_helper'
+require File.expand_path("#{File.dirname(__FILE__)}/spec_helper")
class ThriftHTTPClientTransportSpec < Spec::ExampleGroup
include Thrift
# under the License.
#
-require File.dirname(__FILE__) + '/spec_helper'
+require File.expand_path("#{File.dirname(__FILE__)}/spec_helper")
require 'thrift/server/mongrel_http_server'
class ThriftHTTPServerSpec < Spec::ExampleGroup
# under the License.
#
-require File.dirname(__FILE__) + '/spec_helper'
+require File.expand_path("#{File.dirname(__FILE__)}/spec_helper")
class ThriftNonblockingServerSpec < Spec::ExampleGroup
include Thrift
# under the License.
#
-require File.dirname(__FILE__) + '/spec_helper'
+require File.expand_path("#{File.dirname(__FILE__)}/spec_helper")
class ThriftProcessorSpec < Spec::ExampleGroup
include Thrift
# under the License.
#
-require File.dirname(__FILE__) + '/spec_helper'
+require File.expand_path("#{File.dirname(__FILE__)}/spec_helper")
class ThriftSerializerSpec < Spec::ExampleGroup
include Thrift
# under the License.
#
-require File.dirname(__FILE__) + '/spec_helper'
-require File.dirname(__FILE__) + "/socket_spec_shared"
+require File.expand_path("#{File.dirname(__FILE__)}/spec_helper")
+require File.expand_path("#{File.dirname(__FILE__)}/socket_spec_shared")
class ThriftServerSocketSpec < Spec::ExampleGroup
include Thrift
# specific language governing permissions and limitations
# under the License.
#
-
-require File.dirname(__FILE__) + '/spec_helper'
+require File.expand_path("#{File.dirname(__FILE__)}/spec_helper")
class ThriftServerSpec < Spec::ExampleGroup
include Thrift
# under the License.
#
-require File.dirname(__FILE__) + '/spec_helper'
-require File.dirname(__FILE__) + "/socket_spec_shared"
+require File.expand_path("#{File.dirname(__FILE__)}/spec_helper")
+require File.expand_path("#{File.dirname(__FILE__)}/socket_spec_shared")
class ThriftSocketSpec < Spec::ExampleGroup
include Thrift
# under the License.
#
-require File.dirname(__FILE__) + '/spec_helper'
+require File.expand_path("#{File.dirname(__FILE__)}/spec_helper")
shared_examples_for "a socket" do
it "should open a socket" do
# under the License.
#
-require File.dirname(__FILE__) + '/spec_helper'
+require File.expand_path("#{File.dirname(__FILE__)}/spec_helper")
class ThriftStructSpec < Spec::ExampleGroup
include Thrift
# under the License.
#
-require File.dirname(__FILE__) + '/spec_helper'
+require File.expand_path("#{File.dirname(__FILE__)}/spec_helper")
class ThriftTypesSpec < Spec::ExampleGroup
include Thrift
# under the License.
#
-require File.dirname(__FILE__) + '/spec_helper'
+require File.expand_path("#{File.dirname(__FILE__)}/spec_helper")
class ThriftUnionSpec < Spec::ExampleGroup
include Thrift
# under the License.
#
-require File.dirname(__FILE__) + '/spec_helper'
-require File.dirname(__FILE__) + "/socket_spec_shared"
+require File.expand_path("#{File.dirname(__FILE__)}/spec_helper")
+require File.expand_path("#{File.dirname(__FILE__)}/socket_spec_shared")
class ThriftUNIXSocketSpec < Spec::ExampleGroup
include Thrift