test/commands/test_diff.rb in zold-0.6.4 vs test/commands/test_diff.rb in zold-0.7
- old
+ new
@@ -44,17 +44,17 @@
first = Zold::Wallet.new(File.join(dir, 'copy-1'))
File.write(first.path, File.read(wallet.path))
second = Zold::Wallet.new(File.join(dir, 'copy-2'))
File.write(second.path, File.read(wallet.path))
Zold::Pay.new(
- wallets: Zold::Wallets.new(dir)
+ wallets: Zold::Wallets.new(dir), log: $log
).run(['pay', id.to_s, second.id.to_s, '14.95', '--force', '--private-key=fixtures/id_rsa'])
copies = Zold::Copies.new(File.join(dir, "copies/#{id}"))
copies.add(File.read(first.path), 'host-1', 80, 5)
copies.add(File.read(second.path), 'host-2', 80, 5)
diff = Zold::Diff.new(
wallets: Zold::Wallets.new(dir),
- copies: copies.root
+ copies: copies.root, log: $log
).run(['diff', id.to_s])
assert(diff.include?('-0001;'))
end
end
end