aboutsummaryrefslogtreecommitdiffstats
path: root/test/test_find.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/test_find.rb')
-rw-r--r--test/test_find.rb13
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