test/commands/test_pull.rb in zold-0.14.28 vs test/commands/test_pull.rb in zold-0.14.29

- old
+ new

@@ -41,9 +41,11 @@ id = Zold::JsonPage.new(json).to_hash['id'] stub_request(:get, "http://localhost:80/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] ) - assert(home.wallets.find(Zold::Id.new(id)).exists?) + home.wallets.find(Zold::Id.new(id)) do |wallet| + assert(wallet.exists?) + end end end end