test/commands/test_clean.rb in zold-0.16.10 vs test/commands/test_clean.rb in zold-0.16.11

- old
+ new

@@ -42,9 +42,15 @@ Zold::Clean.new(wallets: home.wallets, copies: copies.root, log: test_log).run(['clean', wallet.id.to_s]) assert(copies.all.empty?) end end + def test_cleans_empty_wallets + FakeHome.new(log: test_log).run do |home| + Zold::Clean.new(wallets: home.wallets, copies: File.join(home.dir, 'c'), log: test_log).run(['clean']) + end + end + def test_cleans_copies_in_threads FakeHome.new(log: test_log).run do |home| wallet = home.create_wallet copies = home.copies(wallet) copies.add(IO.read(wallet.path), 'host-2', 80, 2, Time.now)