test/commands/test_push.rb in zold-0.6.4 vs test/commands/test_push.rb in zold-0.7

- old
+ new

@@ -21,10 +21,11 @@ require 'minitest/autorun' require 'tmpdir' require 'json' require 'time' require 'webmock/minitest' +require_relative '../test__helper' require_relative '../../lib/zold/wallet' require_relative '../../lib/zold/wallets' require_relative '../../lib/zold/remotes' require_relative '../../lib/zold/id' require_relative '../../lib/zold/key' @@ -42,10 +43,10 @@ wallet = wallets.find(id) wallet.init(id, Zold::Key.new(file: 'fixtures/id_rsa.pub')) remotes = Zold::Remotes.new(File.join(dir, 'remotes.csv')) remotes.clean stub_request(:put, "http://fake-1/wallet/#{id}").to_return(status: 304) - Zold::Push.new(wallets: wallets, remotes: remotes).run( + Zold::Push.new(wallets: wallets, remotes: remotes, log: $log).run( ['--ignore-this-stupid-option', 'push', id.to_s] ) end end end