From b3ea5a1789bdb9b52aaa7e37bfbab89094ef0f06 Mon Sep 17 00:00:00 2001 From: akr Date: Sun, 13 Dec 2009 22:48:13 +0000 Subject: add a test. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26084 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- test/test_find.rb | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'test/test_find.rb') 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 -- cgit v1.2.3