diff options
author | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-12-13 22:48:13 +0000 |
---|---|---|
committer | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-12-13 22:48:13 +0000 |
commit | b3ea5a1789bdb9b52aaa7e37bfbab89094ef0f06 (patch) | |
tree | 3f4cd49665c5d776e5a0c694bcc156fe110c3c7f /test | |
parent | 3f07a79c9cd88a50d5ba7ec5b4299e2482258016 (diff) | |
download | ruby-b3ea5a1789bdb9b52aaa7e37bfbab89094ef0f06.tar.gz |
add a test.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26084 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test')
-rw-r--r-- | test/test_find.rb | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/test/test_find.rb b/test/test_find.rb index d0f5b5c6bc..bcd27e7645 100644 --- a/test/test_find.rb +++ b/test/test_find.rb @@ -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 |