jeremylightsmith / cards

a card wall generator - it reads a story map from excel, numbers, csv and generates a graphical view of it in visio, omnigraffle, or dot

This URL has Read+Write access

Jeremy Lightsmith & Wes Maldonado (author)
Tue Mar 31 11:36:59 -0700 2009
cards / win / all_tests.rb
100644 16 lines (15 sloc) 0.481 kb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
def find_tests(dir_name = '.')
    tests = []
    Dir.foreach(dir_name) {|file_name|
        if file_name[0..0] != '.' # ignore '.', '..', and hidden dirs
            full_name = "#{dir_name}/#{file_name}"
            if File.directory?(full_name)
                tests += find_tests(full_name)
            elsif file_name[-8..-1] == '_test.rb'
                tests << full_name
            end
        end
    }
    tests
end
 
find_tests.each {|test| require test}