fix test.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13910 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
d5a3389886
commit
19c0ede6fc
@ -8,7 +8,6 @@ require 'tmpdir'
|
|||||||
require 'enumerator'
|
require 'enumerator'
|
||||||
|
|
||||||
class TestPathname < Test::Unit::TestCase
|
class TestPathname < Test::Unit::TestCase
|
||||||
|
|
||||||
def self.define_assertion(name, &block)
|
def self.define_assertion(name, &block)
|
||||||
@defassert_num ||= {}
|
@defassert_num ||= {}
|
||||||
@defassert_num[name] ||= 0
|
@defassert_num[name] ||= 0
|
||||||
@ -130,7 +129,7 @@ class TestPathname < Test::Unit::TestCase
|
|||||||
end
|
end
|
||||||
|
|
||||||
def del_trailing_separator(path)
|
def del_trailing_separator(path)
|
||||||
Pathname.allocate.send(__send__, :del_trailing_separator, path)
|
Pathname.allocate.__send__(:del_trailing_separator, path)
|
||||||
end
|
end
|
||||||
|
|
||||||
defassert(:del_trailing_separator, "/", "/")
|
defassert(:del_trailing_separator, "/", "/")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user