Sha256: fa6fd1203300e1abf250d0db4aa60ca8a1638552f5d691a04c210a257f669f35
Contents?: true
Size: 483 Bytes
Versions: 2
Compression:
Stored size: 483 Bytes
Contents
$:.unshift File.expand_path('../..', __FILE__) require 'test/samples' require 'ipfs-api/upload' class NodeTest < Minitest::Test include IPFS def test_tree_walker Samples.some_virtual_folders do |fixture, expectations| walker = Upload::TreeWalker.depth_first(fixture) actual = walker.to_a assert_equal 15, actual.size paths = actual.map { |item| item.first.path } assert_equal expectations.map { |item| item.first }, paths end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
ipfs-api-0.2.0 | test/test_upload.rb |
ipfs-api-0.1.0 | test/test_upload.rb |