Sha256: 5f63a6d33e369d333c17b7407a333b6628e194cdd67c68790cdbd6c5ef8e1df8

Contents?: true

Size: 367 Bytes

Versions: 5

Compression:

Stored size: 367 Bytes

Contents

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

Version data entries

5 entries across 5 versions & 2 rubygems

Version Path
facets-glimmer-3.2.0 test/core/dir/test_descend.rb
facets-3.1.0 test/core/dir/test_descend.rb
facets-3.0.0 test/core/dir/test_descend.rb
facets-2.9.3 test/core/dir/test_descend.rb
facets-2.9.2 test/core/dir/test_descend.rb