test/fake_home.rb in zold-0.14.52 vs test/fake_home.rb in zold-0.14.53
- old
+ new
@@ -26,11 +26,10 @@
require_relative '../lib/zold/wallets'
require_relative '../lib/zold/sync_wallets'
require_relative '../lib/zold/key'
require_relative '../lib/zold/version'
require_relative '../lib/zold/remotes'
-require_relative '../lib/zold/atomic_file'
# Fake home dir.
# Author:: Yegor Bugayenko (yegor256@gmail.com)
# Copyright:: Copyright (c) 2018 Yegor Bugayenko
# License:: MIT
@@ -72,10 +71,10 @@
score: score.to_h,
wallets: 1,
mtime: wallet.mtime.utc.iso8601,
digest: wallet.digest,
balance: wallet.balance.to_i,
- body: Zold::AtomicFile.new(wallet.path).read
+ body: File.read(wallet.path)
}.to_json
end
end
def copies(wallet = create_wallet)