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

- old
+ new

@@ -19,10 +19,11 @@ # SOFTWARE. require 'minitest/autorun' require 'tmpdir' require 'webmock/minitest' +require_relative '../test__helper' require_relative '../../lib/zold/wallets' require_relative '../../lib/zold/remotes' require_relative '../../lib/zold/key' require_relative '../../lib/zold/log' require_relative '../../lib/zold/score' @@ -54,10 +55,10 @@ status: 404 ) stub_request(:get, 'http://localhost:999/remotes').to_return( status: 404 ) - cmd = Zold::Remote.new(remotes: remotes) + cmd = Zold::Remote.new(remotes: remotes, log: $log) cmd.run(%w[remote clean]) cmd.run(['remote', 'add', zero.host, zero.port.to_s]) cmd.run(%w[remote add localhost 2]) assert_equal(2, remotes.all.count) cmd.run(['remote', 'update', '--ignore-score-weakness'])