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:
parent
4dfd71005c
commit
48d402db88
27 changed files with 27 additions and 29 deletions
|
@ -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')
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
require 'test_base'
|
||||
require_relative 'test_base'
|
||||
|
||||
module DL
|
||||
class TestHandle < TestBase
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
require 'drbtest'
|
||||
require_relative 'drbtest'
|
||||
|
||||
class TestDRbCore < Test::Unit::TestCase
|
||||
include DRbCore
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
require 'drbtest'
|
||||
require_relative 'drbtest'
|
||||
|
||||
begin
|
||||
require 'drb/ssl'
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
require 'drbtest'
|
||||
require_relative 'drbtest'
|
||||
|
||||
begin
|
||||
require 'drb/unix'
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
begin
|
||||
require "openssl"
|
||||
require File.join(File.dirname(__FILE__), "utils.rb")
|
||||
require_relative 'utils'
|
||||
rescue LoadError
|
||||
end
|
||||
require 'test/unit'
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
begin
|
||||
require "openssl"
|
||||
require File.join(File.dirname(__FILE__), "utils.rb")
|
||||
require_relative 'utils'
|
||||
rescue LoadError
|
||||
end
|
||||
require "test/unit"
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
begin
|
||||
require "openssl"
|
||||
require File.join(File.dirname(__FILE__), "utils.rb")
|
||||
require_relative 'utils'
|
||||
rescue LoadError
|
||||
end
|
||||
require "test/unit"
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
begin
|
||||
require "openssl"
|
||||
require File.join(File.dirname(__FILE__), "utils.rb")
|
||||
require_relative "utils"
|
||||
rescue LoadError
|
||||
end
|
||||
require "test/unit"
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
begin
|
||||
require "openssl"
|
||||
require File.join(File.dirname(__FILE__), "utils.rb")
|
||||
require_relative "utils"
|
||||
rescue LoadError
|
||||
end
|
||||
require "test/unit"
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
begin
|
||||
require "openssl"
|
||||
require File.join(File.dirname(__FILE__), "utils.rb")
|
||||
require_relative "utils"
|
||||
rescue LoadError
|
||||
end
|
||||
require "test/unit"
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
begin
|
||||
require "openssl"
|
||||
require File.join(File.dirname(__FILE__), "utils.rb")
|
||||
require_relative "utils"
|
||||
rescue LoadError
|
||||
end
|
||||
require "test/unit"
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
require 'test/unit'
|
||||
require 'optparse'
|
||||
|
||||
class TestOptionParserGetopts < Test::Unit::TestCase
|
||||
def setup
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
require 'test_optparse'
|
||||
require_relative 'test_optparse'
|
||||
|
||||
module TestOptionParser::NoArg
|
||||
class Def1 < TestOptionParser
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
require 'test_optparse'
|
||||
require_relative 'test_optparse'
|
||||
|
||||
class TestOptionParser::OptArg < TestOptionParser
|
||||
def setup
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
require 'test_optparse'
|
||||
require_relative 'test_optparse'
|
||||
|
||||
class TestOptionParser::PlaceArg < TestOptionParser
|
||||
def setup
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
require 'test_optparse'
|
||||
require_relative 'test_optparse'
|
||||
|
||||
module TestOptionParser::ReqArg
|
||||
class Def1 < TestOptionParser
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
require 'test/unit'
|
||||
require 'envutil.rb'
|
||||
require_relative 'envutil.rb'
|
||||
|
||||
class TestCase < Test::Unit::TestCase
|
||||
def test_case
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
require File.join(File.dirname(__FILE__), "utils.rb")
|
||||
require_relative "utils"
|
||||
require "webrick"
|
||||
require "test/unit"
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
require "test/unit"
|
||||
require File.join(File.dirname(__FILE__), "utils.rb")
|
||||
require_relative "utils.rb"
|
||||
require "webrick"
|
||||
require "stringio"
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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'
|
||||
|
||||
|
|
|
@ -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'
|
||||
|
||||
|
|
Loading…
Reference in a new issue