test/commands/test_pull.rb in zold-0.16.22 vs test/commands/test_pull.rb in zold-0.16.23
- old
+ new
@@ -37,9 +37,10 @@
FakeHome.new(log: test_log).run do |home|
remotes = home.remotes
remotes.add('localhost', 4096)
json = home.create_wallet_json
id = Zold::JsonPage.new(json).to_hash['id']
+ stub_request(:get, "http://localhost:4096/wallet/#{id}/size").to_return(status: 200, body: '10000')
stub_request(:get, "http://localhost:4096/wallet/#{id}").to_return(status: 200, body: json)
Zold::Pull.new(wallets: home.wallets, remotes: remotes, copies: home.copies.root.to_s, log: test_log).run(
['--ignore-this-stupid-option', 'pull', id.to_s]
)
home.wallets.find(Zold::Id.new(id)) do |wallet|