зеркало из https://github.com/github/ruby.git
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:
Родитель
4dfd71005c
Коммит
48d402db88
|
@ -1,3 +1,2 @@
|
||||||
require 'pathname'
|
require_relative '../inlinetest.rb'
|
||||||
require Pathname.new(__FILE__).dirname.join('../inlinetest.rb')
|
|
||||||
InlineTest.loadtest__END__part('digest/hmac.rb')
|
InlineTest.loadtest__END__part('digest/hmac.rb')
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
require 'test_base'
|
require_relative 'test_base'
|
||||||
|
|
||||||
module DL
|
module DL
|
||||||
class TestHandle < TestBase
|
class TestHandle < TestBase
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
require 'drbtest'
|
require_relative 'drbtest'
|
||||||
|
|
||||||
class TestDRbCore < Test::Unit::TestCase
|
class TestDRbCore < Test::Unit::TestCase
|
||||||
include DRbCore
|
include DRbCore
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
require 'drbtest'
|
require_relative 'drbtest'
|
||||||
|
|
||||||
begin
|
begin
|
||||||
require 'drb/ssl'
|
require 'drb/ssl'
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
require 'drbtest'
|
require_relative 'drbtest'
|
||||||
|
|
||||||
begin
|
begin
|
||||||
require 'drb/unix'
|
require 'drb/unix'
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
begin
|
begin
|
||||||
require "openssl"
|
require "openssl"
|
||||||
require File.join(File.dirname(__FILE__), "utils.rb")
|
require_relative 'utils'
|
||||||
rescue LoadError
|
rescue LoadError
|
||||||
end
|
end
|
||||||
require 'test/unit'
|
require 'test/unit'
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
begin
|
begin
|
||||||
require "openssl"
|
require "openssl"
|
||||||
require File.join(File.dirname(__FILE__), "utils.rb")
|
require_relative 'utils'
|
||||||
rescue LoadError
|
rescue LoadError
|
||||||
end
|
end
|
||||||
require "test/unit"
|
require "test/unit"
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
begin
|
begin
|
||||||
require "openssl"
|
require "openssl"
|
||||||
require File.join(File.dirname(__FILE__), "utils.rb")
|
require_relative 'utils'
|
||||||
rescue LoadError
|
rescue LoadError
|
||||||
end
|
end
|
||||||
require "test/unit"
|
require "test/unit"
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
begin
|
begin
|
||||||
require "openssl"
|
require "openssl"
|
||||||
require File.join(File.dirname(__FILE__), "utils.rb")
|
require_relative "utils"
|
||||||
rescue LoadError
|
rescue LoadError
|
||||||
end
|
end
|
||||||
require "test/unit"
|
require "test/unit"
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
begin
|
begin
|
||||||
require "openssl"
|
require "openssl"
|
||||||
require File.join(File.dirname(__FILE__), "utils.rb")
|
require_relative "utils"
|
||||||
rescue LoadError
|
rescue LoadError
|
||||||
end
|
end
|
||||||
require "test/unit"
|
require "test/unit"
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
begin
|
begin
|
||||||
require "openssl"
|
require "openssl"
|
||||||
require File.join(File.dirname(__FILE__), "utils.rb")
|
require_relative "utils"
|
||||||
rescue LoadError
|
rescue LoadError
|
||||||
end
|
end
|
||||||
require "test/unit"
|
require "test/unit"
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
begin
|
begin
|
||||||
require "openssl"
|
require "openssl"
|
||||||
require File.join(File.dirname(__FILE__), "utils.rb")
|
require_relative "utils"
|
||||||
rescue LoadError
|
rescue LoadError
|
||||||
end
|
end
|
||||||
require "test/unit"
|
require "test/unit"
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
require 'test/unit'
|
require 'test/unit'
|
||||||
|
require 'optparse'
|
||||||
|
|
||||||
class TestOptionParserGetopts < Test::Unit::TestCase
|
class TestOptionParserGetopts < Test::Unit::TestCase
|
||||||
def setup
|
def setup
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
require 'test_optparse'
|
require_relative 'test_optparse'
|
||||||
|
|
||||||
module TestOptionParser::NoArg
|
module TestOptionParser::NoArg
|
||||||
class Def1 < TestOptionParser
|
class Def1 < TestOptionParser
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
require 'test_optparse'
|
require_relative 'test_optparse'
|
||||||
|
|
||||||
class TestOptionParser::OptArg < TestOptionParser
|
class TestOptionParser::OptArg < TestOptionParser
|
||||||
def setup
|
def setup
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
require 'test_optparse'
|
require_relative 'test_optparse'
|
||||||
|
|
||||||
class TestOptionParser::PlaceArg < TestOptionParser
|
class TestOptionParser::PlaceArg < TestOptionParser
|
||||||
def setup
|
def setup
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
require 'test_optparse'
|
require_relative 'test_optparse'
|
||||||
|
|
||||||
module TestOptionParser::ReqArg
|
module TestOptionParser::ReqArg
|
||||||
class Def1 < TestOptionParser
|
class Def1 < TestOptionParser
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
require 'test/unit'
|
require 'test/unit'
|
||||||
require 'envutil.rb'
|
require_relative 'envutil.rb'
|
||||||
|
|
||||||
class TestCase < Test::Unit::TestCase
|
class TestCase < Test::Unit::TestCase
|
||||||
def test_case
|
def test_case
|
||||||
|
|
|
@ -1,4 +1,3 @@
|
||||||
require 'pathname'
|
require_relative 'inlinetest.rb'
|
||||||
require Pathname.new(__FILE__).dirname.join('inlinetest.rb')
|
|
||||||
target = __FILE__[/test_(.*\.rb)$/, 1]
|
target = __FILE__[/test_(.*\.rb)$/, 1]
|
||||||
InlineTest.loadtest__END__part(target)
|
InlineTest.loadtest__END__part(target)
|
||||||
|
|
|
@ -1,4 +1,3 @@
|
||||||
require 'pathname'
|
require_relative 'inlinetest.rb'
|
||||||
require Pathname.new(__FILE__).dirname.join('inlinetest.rb')
|
|
||||||
target = __FILE__[/test_(.*\.rb)$/, 1]
|
target = __FILE__[/test_(.*\.rb)$/, 1]
|
||||||
InlineTest.loadtest__END__part(target)
|
InlineTest.loadtest__END__part(target)
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
require File.join(File.dirname(__FILE__), "utils.rb")
|
require_relative "utils"
|
||||||
require "webrick"
|
require "webrick"
|
||||||
require "test/unit"
|
require "test/unit"
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
require "test/unit"
|
require "test/unit"
|
||||||
require File.join(File.dirname(__FILE__), "utils.rb")
|
require_relative "utils.rb"
|
||||||
require "webrick"
|
require "webrick"
|
||||||
require "stringio"
|
require "stringio"
|
||||||
|
|
||||||
|
|
|
@ -3,7 +3,7 @@ require "net/http"
|
||||||
require "tempfile"
|
require "tempfile"
|
||||||
require "webrick"
|
require "webrick"
|
||||||
require "webrick/httpauth/basicauth"
|
require "webrick/httpauth/basicauth"
|
||||||
require File.join(File.dirname(__FILE__), "utils.rb")
|
require_relative "utils"
|
||||||
|
|
||||||
class TestWEBrickHTTPAuth < Test::Unit::TestCase
|
class TestWEBrickHTTPAuth < Test::Unit::TestCase
|
||||||
def test_basic_auth
|
def test_basic_auth
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
require "test/unit"
|
require "test/unit"
|
||||||
require "net/http"
|
require "net/http"
|
||||||
require "webrick"
|
require "webrick"
|
||||||
require File.join(File.dirname(__FILE__), "utils.rb")
|
require_relative "utils"
|
||||||
|
|
||||||
class TestWEBrickHTTPServer < Test::Unit::TestCase
|
class TestWEBrickHTTPServer < Test::Unit::TestCase
|
||||||
def test_mount
|
def test_mount
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
require "test/unit"
|
require "test/unit"
|
||||||
require "tempfile"
|
require "tempfile"
|
||||||
require "webrick"
|
require "webrick"
|
||||||
require File.join(File.dirname(__FILE__), "utils.rb")
|
require_relative "utils"
|
||||||
|
|
||||||
class TestWEBrickServer < Test::Unit::TestCase
|
class TestWEBrickServer < Test::Unit::TestCase
|
||||||
class Echo < WEBrick::GenericServer
|
class Echo < WEBrick::GenericServer
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
require 'test/unit'
|
require 'test/unit'
|
||||||
require 'time'
|
require 'time'
|
||||||
require 'webrick'
|
require 'webrick'
|
||||||
require File.join(File.dirname(__FILE__), 'webrick_testing')
|
require_relative 'webrick_testing'
|
||||||
require "xmlrpc/server"
|
require "xmlrpc/server"
|
||||||
require 'xmlrpc/client'
|
require 'xmlrpc/client'
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
require 'test/unit'
|
require 'test/unit'
|
||||||
require 'webrick'
|
require 'webrick'
|
||||||
require File.join(File.dirname(__FILE__), 'webrick_testing')
|
require_relative 'webrick_testing'
|
||||||
require "xmlrpc/server"
|
require "xmlrpc/server"
|
||||||
require 'xmlrpc/client'
|
require 'xmlrpc/client'
|
||||||
|
|
||||||
|
|
Загрузка…
Ссылка в новой задаче