test/test_tree_wallets.rb in zold-0.17.10 vs test/test_tree_wallets.rb in zold-0.18.0

- old
+ new

@@ -55,6 +55,19 @@ end end assert_equal(10, wallets.all.count) end end + + def test_count_tree_wallets + Dir.mktmpdir do |dir| + Dir.chdir(dir) do + 5.times { |i| FileUtils.touch("wallet_#{i}.z") } + Dir.mktmpdir(nil, dir) do |subdir| + 5.times { |i| FileUtils.touch("#{subdir}/wallet_#{i}.z") } + wallets = Zold::TreeWallets.new(Dir.pwd) + assert_equal(10, wallets.count) + end + end + end + end end