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

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