1
0
Fork 0
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:
akr 2009-12-13 22:48:13 +00:00
parent 3f07a79c9c
commit b3ea5a1789

View file

@ -89,4 +89,17 @@ class TestFind < Test::Unit::TestCase
}
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