mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
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
1 changed files with 1 additions and 2 deletions
|
@ -8,7 +8,6 @@ require 'tmpdir'
|
|||
require 'enumerator'
|
||||
|
||||
class TestPathname < Test::Unit::TestCase
|
||||
|
||||
def self.define_assertion(name, &block)
|
||||
@defassert_num ||= {}
|
||||
@defassert_num[name] ||= 0
|
||||
|
@ -130,7 +129,7 @@ class TestPathname < Test::Unit::TestCase
|
|||
end
|
||||
|
||||
def del_trailing_separator(path)
|
||||
Pathname.allocate.send(__send__, :del_trailing_separator, path)
|
||||
Pathname.allocate.__send__(:del_trailing_separator, path)
|
||||
end
|
||||
|
||||
defassert(:del_trailing_separator, "/", "/")
|
||||
|
|
Loading…
Add table
Reference in a new issue