1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

use require_relative.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26542 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
akr 2010-02-02 13:58:56 +00:00
parent 4dfd71005c
commit 48d402db88
27 changed files with 27 additions and 29 deletions

View file

@ -1,3 +1,2 @@
require 'pathname'
require Pathname.new(__FILE__).dirname.join('../inlinetest.rb')
require_relative '../inlinetest.rb'
InlineTest.loadtest__END__part('digest/hmac.rb')

View file

@ -1,4 +1,4 @@
require 'test_base'
require_relative 'test_base'
module DL
class TestHandle < TestBase

View file

@ -1,4 +1,4 @@
require 'drbtest'
require_relative 'drbtest'
class TestDRbCore < Test::Unit::TestCase
include DRbCore

View file

@ -1,4 +1,4 @@
require 'drbtest'
require_relative 'drbtest'
begin
require 'drb/ssl'

View file

@ -1,4 +1,4 @@
require 'drbtest'
require_relative 'drbtest'
begin
require 'drb/unix'

View file

@ -1,6 +1,6 @@
begin
require "openssl"
require File.join(File.dirname(__FILE__), "utils.rb")
require_relative 'utils'
rescue LoadError
end
require 'test/unit'

View file

@ -1,6 +1,6 @@
begin
require "openssl"
require File.join(File.dirname(__FILE__), "utils.rb")
require_relative 'utils'
rescue LoadError
end
require "test/unit"

View file

@ -1,6 +1,6 @@
begin
require "openssl"
require File.join(File.dirname(__FILE__), "utils.rb")
require_relative 'utils'
rescue LoadError
end
require "test/unit"

View file

@ -1,6 +1,6 @@
begin
require "openssl"
require File.join(File.dirname(__FILE__), "utils.rb")
require_relative "utils"
rescue LoadError
end
require "test/unit"

View file

@ -1,6 +1,6 @@
begin
require "openssl"
require File.join(File.dirname(__FILE__), "utils.rb")
require_relative "utils"
rescue LoadError
end
require "test/unit"

View file

@ -1,6 +1,6 @@
begin
require "openssl"
require File.join(File.dirname(__FILE__), "utils.rb")
require_relative "utils"
rescue LoadError
end
require "test/unit"

View file

@ -1,6 +1,6 @@
begin
require "openssl"
require File.join(File.dirname(__FILE__), "utils.rb")
require_relative "utils"
rescue LoadError
end
require "test/unit"

View file

@ -1,4 +1,5 @@
require 'test/unit'
require 'optparse'
class TestOptionParserGetopts < Test::Unit::TestCase
def setup

View file

@ -1,4 +1,4 @@
require 'test_optparse'
require_relative 'test_optparse'
module TestOptionParser::NoArg
class Def1 < TestOptionParser

View file

@ -1,4 +1,4 @@
require 'test_optparse'
require_relative 'test_optparse'
class TestOptionParser::OptArg < TestOptionParser
def setup

View file

@ -1,4 +1,4 @@
require 'test_optparse'
require_relative 'test_optparse'
class TestOptionParser::PlaceArg < TestOptionParser
def setup

View file

@ -1,4 +1,4 @@
require 'test_optparse'
require_relative 'test_optparse'
module TestOptionParser::ReqArg
class Def1 < TestOptionParser

View file

@ -1,5 +1,5 @@
require 'test/unit'
require 'envutil.rb'
require_relative 'envutil.rb'
class TestCase < Test::Unit::TestCase
def test_case

View file

@ -1,4 +1,3 @@
require 'pathname'
require Pathname.new(__FILE__).dirname.join('inlinetest.rb')
require_relative 'inlinetest.rb'
target = __FILE__[/test_(.*\.rb)$/, 1]
InlineTest.loadtest__END__part(target)

View file

@ -1,4 +1,3 @@
require 'pathname'
require Pathname.new(__FILE__).dirname.join('inlinetest.rb')
require_relative 'inlinetest.rb'
target = __FILE__[/test_(.*\.rb)$/, 1]
InlineTest.loadtest__END__part(target)

View file

@ -1,4 +1,4 @@
require File.join(File.dirname(__FILE__), "utils.rb")
require_relative "utils"
require "webrick"
require "test/unit"

View file

@ -1,5 +1,5 @@
require "test/unit"
require File.join(File.dirname(__FILE__), "utils.rb")
require_relative "utils.rb"
require "webrick"
require "stringio"

View file

@ -3,7 +3,7 @@ require "net/http"
require "tempfile"
require "webrick"
require "webrick/httpauth/basicauth"
require File.join(File.dirname(__FILE__), "utils.rb")
require_relative "utils"
class TestWEBrickHTTPAuth < Test::Unit::TestCase
def test_basic_auth

View file

@ -1,7 +1,7 @@
require "test/unit"
require "net/http"
require "webrick"
require File.join(File.dirname(__FILE__), "utils.rb")
require_relative "utils"
class TestWEBrickHTTPServer < Test::Unit::TestCase
def test_mount

View file

@ -1,7 +1,7 @@
require "test/unit"
require "tempfile"
require "webrick"
require File.join(File.dirname(__FILE__), "utils.rb")
require_relative "utils"
class TestWEBrickServer < Test::Unit::TestCase
class Echo < WEBrick::GenericServer

View file

@ -1,7 +1,7 @@
require 'test/unit'
require 'time'
require 'webrick'
require File.join(File.dirname(__FILE__), 'webrick_testing')
require_relative 'webrick_testing'
require "xmlrpc/server"
require 'xmlrpc/client'

View file

@ -1,6 +1,6 @@
require 'test/unit'
require 'webrick'
require File.join(File.dirname(__FILE__), 'webrick_testing')
require_relative 'webrick_testing'
require "xmlrpc/server"
require 'xmlrpc/client'