covers 'facets/dir/ascend' test_case Dir do test_directory = 'test/core/dir' class_method :descend do test do c = [] Dir.descend(test_directory) do |path| c << path end rdir = test_directory c.reverse_each do |d| d.assert == rdir rdir = File.dirname(rdir) end end end end