test/commands/test_remove.rb in zold-0.18.9 vs test/commands/test_remove.rb in zold-0.19.0
- old
+ new
@@ -52,6 +52,15 @@
FakeHome.new(log: test_log).run do |home|
Zold::Remove.new(wallets: home.wallets, log: test_log).run(['remove'])
assert(home.wallets.all.empty?)
end
end
+
+ def test_removes_absent_wallets
+ FakeHome.new(log: test_log).run do |home|
+ Zold::Remove.new(wallets: home.wallets, log: test_log).run(
+ ['remove', '7654321076543210', '--force']
+ )
+ assert(home.wallets.all.empty?)
+ end
+ end
end