1
0
Fork 0
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:
nobu 2009-10-03 14:47:46 +00:00
parent 664c7ef4f6
commit 746fe8af5a
27 changed files with 38 additions and 38 deletions

View file

@ -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

View file

@ -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"

View file

@ -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"

View file

@ -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)

View file

@ -3,7 +3,7 @@ require 'rake'
require 'stringio'
######################################################################
class TestExtension < Test::Unit::TestCase
class Rake::TestExtension < Test::Unit::TestCase
module Redirect
def error_redirect

View file

@ -4,7 +4,7 @@ require 'rake'
require_relative 'filecreation'
######################################################################
class TestFileCreationTask < Test::Unit::TestCase
class Rake::TestFileCreationTask < Test::Unit::TestCase
include Rake
include FileCreation

View file

@ -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

View file

@ -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

View file

@ -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"

View file

@ -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 }

View file

@ -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"

View file

@ -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

View file

@ -2,7 +2,7 @@ require 'test/unit'
require 'rake'
######################################################################
class TestMultiTask < Test::Unit::TestCase
class Rake::TestMultiTask < Test::Unit::TestCase
include Rake
def setup

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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')

View file

@ -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

View file

@ -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

View file

@ -4,7 +4,7 @@ require 'rake'
require_relative 'filecreation'
######################################################################
class TestRules < Test::Unit::TestCase
class Rake::TestRules < Test::Unit::TestCase
include Rake
include FileCreation

View file

@ -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')

View file

@ -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)

View file

@ -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)

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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