test/commands/test_node.rb in zold-0.6 vs test/commands/test_node.rb in zold-0.6.1
- old
+ new
@@ -44,11 +44,11 @@
wallet.init(id, Zold::Key.new(file: 'fixtures/id_rsa.pub'))
copies = Zold::Copies.new(File.join(dir, 'copies'))
remotes = Zold::Remotes.new(File.join(dir, 'remotes.csv'))
remotes.clean
remotes.add('localhost', port)
- Zold::Push.new(wallet: wallet, remotes: remotes).run
- Zold::Fetch.new(wallet: wallet, copies: copies, remotes: remotes).run
+ Zold::Push.new(wallet: wallet, remotes: remotes).run(['push'])
+ Zold::Fetch.new(wallet: wallet, copies: copies, remotes: remotes).run(['fetch'])
assert_equal(copies.all[0][:name], '1')
assert_equal(copies.all[0][:score], 0)
end
end
end