mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* test/rake: get rid of name collision.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25211 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
664c7ef4f6
commit
746fe8af5a
27 changed files with 38 additions and 38 deletions
|
@ -6,7 +6,7 @@ require_relative 'in_environment'
|
|||
TESTING_REQUIRE = [ ]
|
||||
|
||||
######################################################################
|
||||
class TestApplication < Test::Unit::TestCase
|
||||
class Rake::TestApplication < Test::Unit::TestCase
|
||||
include CaptureStdout
|
||||
include InEnvironment
|
||||
BASEDIR = File.dirname(__FILE__)
|
||||
|
@ -298,7 +298,7 @@ end
|
|||
|
||||
|
||||
######################################################################
|
||||
class TestApplicationOptions < Test::Unit::TestCase
|
||||
class Rake::TestApplicationOptions < Test::Unit::TestCase
|
||||
include CaptureStdout
|
||||
|
||||
def setup
|
||||
|
@ -589,7 +589,7 @@ class TestApplicationOptions < Test::Unit::TestCase
|
|||
end
|
||||
end
|
||||
|
||||
class TestTaskArgumentParsing < Test::Unit::TestCase
|
||||
class Rake::TestTaskArgumentParsing < Test::Unit::TestCase
|
||||
def setup
|
||||
@app = Rake::Application.new
|
||||
end
|
||||
|
@ -632,7 +632,7 @@ class TestTaskArgumentParsing < Test::Unit::TestCase
|
|||
|
||||
end
|
||||
|
||||
class TestTaskArgumentParsing < Test::Unit::TestCase
|
||||
class Rake::TestTaskArgumentParsing < Test::Unit::TestCase
|
||||
include InEnvironment
|
||||
|
||||
def test_terminal_width_using_env
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
require 'test/unit'
|
||||
require 'rake/clean'
|
||||
|
||||
class TestClean < Test::Unit::TestCase
|
||||
class Rake::TestClean < Test::Unit::TestCase
|
||||
include Rake
|
||||
def test_clean
|
||||
assert Task['clean'], "Should define clean"
|
||||
|
|
|
@ -4,7 +4,7 @@ require 'rake'
|
|||
require_relative 'filecreation'
|
||||
|
||||
######################################################################
|
||||
class TestDefinitions < Test::Unit::TestCase
|
||||
class Rake::TestDefinitions < Test::Unit::TestCase
|
||||
include Rake
|
||||
|
||||
EXISTINGFILE = "testdata/existing"
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
require 'test/unit'
|
||||
require 'rake'
|
||||
|
||||
class TestEarlyTime < Test::Unit::TestCase
|
||||
class Rake::TestEarlyTime < Test::Unit::TestCase
|
||||
def test_create
|
||||
early = Rake::EarlyTime.instance
|
||||
time = Time.mktime(1970, 1, 1, 0, 0, 0)
|
||||
|
|
|
@ -3,7 +3,7 @@ require 'rake'
|
|||
require 'stringio'
|
||||
|
||||
######################################################################
|
||||
class TestExtension < Test::Unit::TestCase
|
||||
class Rake::TestExtension < Test::Unit::TestCase
|
||||
|
||||
module Redirect
|
||||
def error_redirect
|
||||
|
|
|
@ -4,7 +4,7 @@ require 'rake'
|
|||
require_relative 'filecreation'
|
||||
|
||||
######################################################################
|
||||
class TestFileCreationTask < Test::Unit::TestCase
|
||||
class Rake::TestFileCreationTask < Test::Unit::TestCase
|
||||
include Rake
|
||||
include FileCreation
|
||||
|
||||
|
|
|
@ -4,7 +4,7 @@ require 'rake'
|
|||
require_relative 'filecreation'
|
||||
|
||||
######################################################################
|
||||
class TestFileTask < Test::Unit::TestCase
|
||||
class Rake::TestFileTask < Test::Unit::TestCase
|
||||
include Rake
|
||||
include FileCreation
|
||||
|
||||
|
@ -89,7 +89,7 @@ class TestFileTask < Test::Unit::TestCase
|
|||
end
|
||||
|
||||
######################################################################
|
||||
class TestDirectoryTask < Test::Unit::TestCase
|
||||
class Rake::TestDirectoryTask < Test::Unit::TestCase
|
||||
include Rake
|
||||
|
||||
def setup
|
||||
|
|
|
@ -4,7 +4,7 @@ require 'rake'
|
|||
|
||||
require_relative 'capture_stdout'
|
||||
|
||||
class TestFileList < Test::Unit::TestCase
|
||||
class Rake::TestFileList < Test::Unit::TestCase
|
||||
FileList = Rake::FileList
|
||||
include CaptureStdout
|
||||
|
||||
|
|
|
@ -4,7 +4,7 @@ require_relative 'filecreation'
|
|||
require 'fileutils'
|
||||
require 'stringio'
|
||||
|
||||
class TestFileUtils < Test::Unit::TestCase
|
||||
class Rake::TestFileUtils < Test::Unit::TestCase
|
||||
include FileCreation
|
||||
BASEDIR = File.dirname(__FILE__)
|
||||
ShellCommand = "#{BASEDIR}/shellcommand.rb"
|
||||
|
|
|
@ -13,7 +13,7 @@ class FakeDate
|
|||
end
|
||||
|
||||
|
||||
class TestFtpFile < Test::Unit::TestCase
|
||||
class Rake::TestFtpFile < Test::Unit::TestCase
|
||||
|
||||
def setup
|
||||
Rake::FtpFile.class_eval { @date_class = FakeDate; @time_class = FakeDate }
|
||||
|
|
|
@ -2,7 +2,7 @@ require 'test/unit'
|
|||
require 'rake'
|
||||
|
||||
######################################################################
|
||||
class TestAnEmptyInvocationChain < Test::Unit::TestCase
|
||||
class Rake::TestAnEmptyInvocationChain < Test::Unit::TestCase
|
||||
|
||||
def setup
|
||||
@empty = Rake::InvocationChain::EMPTY
|
||||
|
@ -20,7 +20,7 @@ class TestAnEmptyInvocationChain < Test::Unit::TestCase
|
|||
end
|
||||
|
||||
######################################################################
|
||||
class TestAnInvocationChainWithOneMember < Test::Unit::TestCase
|
||||
class Rake::TestAnInvocationChainWithOneMember < Test::Unit::TestCase
|
||||
|
||||
def setup
|
||||
@empty = Rake::InvocationChain::EMPTY
|
||||
|
@ -47,7 +47,7 @@ class TestAnInvocationChainWithOneMember < Test::Unit::TestCase
|
|||
end
|
||||
|
||||
######################################################################
|
||||
class TestAnInvocationChainWithMultipleMember < Test::Unit::TestCase
|
||||
class Rake::TestAnInvocationChainWithMultipleMember < Test::Unit::TestCase
|
||||
|
||||
def setup
|
||||
@first_member = "A"
|
||||
|
|
|
@ -2,7 +2,7 @@ require 'test/unit'
|
|||
require 'rake'
|
||||
require 'rake/loaders/makefile'
|
||||
|
||||
class TestMakefileLoader < Test::Unit::TestCase
|
||||
class Rake::TestMakefileLoader < Test::Unit::TestCase
|
||||
include Rake
|
||||
|
||||
def test_parse
|
||||
|
|
|
@ -2,7 +2,7 @@ require 'test/unit'
|
|||
require 'rake'
|
||||
|
||||
######################################################################
|
||||
class TestMultiTask < Test::Unit::TestCase
|
||||
class Rake::TestMultiTask < Test::Unit::TestCase
|
||||
include Rake
|
||||
|
||||
def setup
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
require 'test/unit'
|
||||
require 'rake'
|
||||
|
||||
class TestNameSpace < Test::Unit::TestCase
|
||||
class Rake::TestNameSpace < Test::Unit::TestCase
|
||||
|
||||
class TM
|
||||
include Rake::TaskManager
|
||||
|
|
|
@ -2,7 +2,7 @@ require 'test/unit'
|
|||
require 'rake'
|
||||
|
||||
# ====================================================================
|
||||
class TestPathMap < Test::Unit::TestCase
|
||||
class Rake::TestPathMap < Test::Unit::TestCase
|
||||
|
||||
def test_returns_self_with_no_args
|
||||
assert_equal "abc.rb", "abc.rb".pathmap
|
||||
|
@ -157,7 +157,7 @@ class TestPathMap < Test::Unit::TestCase
|
|||
end
|
||||
end
|
||||
|
||||
class TestPathMapExplode < Test::Unit::TestCase
|
||||
class Rake::TestPathMapExplode < Test::Unit::TestCase
|
||||
def setup
|
||||
String.class_eval { public :pathmap_explode }
|
||||
end
|
||||
|
@ -184,7 +184,7 @@ class TestPathMapExplode < Test::Unit::TestCase
|
|||
end
|
||||
end
|
||||
|
||||
class TestPathMapPartial < Test::Unit::TestCase
|
||||
class Rake::TestPathMapPartial < Test::Unit::TestCase
|
||||
def test_pathmap_partial
|
||||
@path = "1/2/file"
|
||||
def @path.call(n)
|
||||
|
@ -200,7 +200,7 @@ class TestPathMapPartial < Test::Unit::TestCase
|
|||
end
|
||||
end
|
||||
|
||||
class TestFileListPathMap < Test::Unit::TestCase
|
||||
class Rake::TestFileListPathMap < Test::Unit::TestCase
|
||||
def test_file_list_supports_pathmap
|
||||
assert_equal ['a', 'b'], FileList['dir/a.rb', 'dir/b.rb'].pathmap("%n")
|
||||
end
|
||||
|
|
|
@ -3,7 +3,7 @@ require 'rake'
|
|||
|
||||
require_relative 'capture_stdout'
|
||||
|
||||
class PseudoStatusTest < Test::Unit::TestCase
|
||||
class Rake::TestPseudoStatus < Test::Unit::TestCase
|
||||
def test_with_zero_exit_status
|
||||
s = Rake::PseudoStatus.new
|
||||
assert_equal 0, s.exitstatus
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
require 'test/unit'
|
||||
require 'rake'
|
||||
|
||||
class TestRake < Test::Unit::TestCase
|
||||
class Rake::TestRake < Test::Unit::TestCase
|
||||
def test_each_dir_parent
|
||||
assert_equal ['a'], alldirs('a')
|
||||
assert_equal ['a/b', 'a'], alldirs('a/b')
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
require 'test/unit'
|
||||
require 'rake/rdoctask'
|
||||
|
||||
class TestRDocTask < Test::Unit::TestCase
|
||||
class Rake::TestRDocTask < Test::Unit::TestCase
|
||||
include Rake
|
||||
|
||||
def setup
|
||||
|
|
|
@ -2,7 +2,7 @@ require 'test/unit'
|
|||
require 'rake'
|
||||
|
||||
# ====================================================================
|
||||
class TestRequire < Test::Unit::TestCase
|
||||
class Rake::TestRequire < Test::Unit::TestCase
|
||||
RakeLibDir = File.dirname(__FILE__) + '/data/rakelib'
|
||||
|
||||
def test_can_load_rake_library
|
||||
|
|
|
@ -4,7 +4,7 @@ require 'rake'
|
|||
require_relative 'filecreation'
|
||||
|
||||
######################################################################
|
||||
class TestRules < Test::Unit::TestCase
|
||||
class Rake::TestRules < Test::Unit::TestCase
|
||||
include Rake
|
||||
include FileCreation
|
||||
|
||||
|
|
|
@ -2,7 +2,7 @@ require 'test/unit'
|
|||
require 'rake'
|
||||
|
||||
######################################################################
|
||||
class TestTaskArguments < Test::Unit::TestCase
|
||||
class Rake::TestTaskArguments < Test::Unit::TestCase
|
||||
def teardown
|
||||
ENV.delete('rev')
|
||||
ENV.delete('VER')
|
||||
|
|
|
@ -5,7 +5,7 @@ class TaskManager
|
|||
include Rake::TaskManager
|
||||
end
|
||||
|
||||
class TestTaskManager < Test::Unit::TestCase
|
||||
class Rake::TestTaskManager < Test::Unit::TestCase
|
||||
|
||||
def setup
|
||||
@tm = TaskManager.new
|
||||
|
@ -146,7 +146,7 @@ class TestTaskManager < Test::Unit::TestCase
|
|||
|
||||
end
|
||||
|
||||
class TestTaskManagerArgumentResolution < Test::Unit::TestCase
|
||||
class Rake::TestTaskManagerArgumentResolution < Test::Unit::TestCase
|
||||
def test_good_arg_patterns
|
||||
assert_equal [:t, [], []], task(:t)
|
||||
assert_equal [:t, [], [:x]], task(:t => :x)
|
||||
|
|
|
@ -2,7 +2,7 @@ require 'test/unit'
|
|||
require 'rake/tasklib'
|
||||
|
||||
|
||||
class TestTaskLib < Test::Unit::TestCase
|
||||
class Rake::TestTaskLib < Test::Unit::TestCase
|
||||
def test_paste
|
||||
tl = Rake::TaskLib.new
|
||||
assert_equal :ab, tl.paste(:a, :b)
|
||||
|
|
|
@ -5,7 +5,7 @@ require_relative 'filecreation'
|
|||
require_relative 'capture_stdout'
|
||||
|
||||
######################################################################
|
||||
class TestTask < Test::Unit::TestCase
|
||||
class Rake::TestTask < Test::Unit::TestCase
|
||||
include CaptureStdout
|
||||
include Rake
|
||||
|
||||
|
@ -213,7 +213,7 @@ class TestTask < Test::Unit::TestCase
|
|||
end
|
||||
|
||||
######################################################################
|
||||
class TestTaskWithArguments < Test::Unit::TestCase
|
||||
class Rake::TestTaskWithArguments < Test::Unit::TestCase
|
||||
include CaptureStdout
|
||||
include Rake
|
||||
|
||||
|
|
|
@ -2,7 +2,7 @@ require 'tmpdir'
|
|||
require 'test/unit'
|
||||
require 'rake/testtask'
|
||||
|
||||
class TestTestTask < Test::Unit::TestCase
|
||||
class Rake::TestTestTask < Test::Unit::TestCase
|
||||
include Rake
|
||||
|
||||
def setup
|
||||
|
|
|
@ -2,7 +2,7 @@ require 'test/unit'
|
|||
require_relative 'capture_stdout'
|
||||
require 'rake'
|
||||
|
||||
class TestTopLevelFunctions < Test::Unit::TestCase
|
||||
class Rake::TestTopLevelFunctions < Test::Unit::TestCase
|
||||
include CaptureStdout
|
||||
|
||||
def setup
|
||||
|
|
|
@ -3,7 +3,7 @@ require_relative 'in_environment'
|
|||
|
||||
require 'rake'
|
||||
|
||||
class TestWin32 < Test::Unit::TestCase
|
||||
class Rake::TestWin32 < Test::Unit::TestCase
|
||||
include InEnvironment
|
||||
|
||||
Win32 = Rake::Win32
|
||||
|
|
Loading…
Reference in a new issue