mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
add a test.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26084 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
3f07a79c9c
commit
b3ea5a1789
1 changed files with 13 additions and 0 deletions
|
@ -89,4 +89,17 @@ class TestFind < Test::Unit::TestCase
|
||||||
}
|
}
|
||||||
end
|
end
|
||||||
|
|
||||||
|
class TestInclude < Test::Unit::TestCase
|
||||||
|
include Find
|
||||||
|
|
||||||
|
def test_functional_call
|
||||||
|
Dir.mktmpdir {|d|
|
||||||
|
File.open("#{d}/a", "w")
|
||||||
|
a = []
|
||||||
|
find(d) {|f| a << f }
|
||||||
|
assert_equal([d, "#{d}/a"], a)
|
||||||
|
}
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue