test/test_key.rb in zold-0.15.0 vs test/test_key.rb in zold-0.16.0

- old
+ new

@@ -54,12 +54,12 @@ def test_signs_and_verifies_with_random_key Dir.mktmpdir do |dir| key = OpenSSL::PKey::RSA.new(2048) file = File.join(dir, 'temp') - File.write(file, key.public_key.to_s) + IO.write(file, key.public_key.to_s) pub = Zold::Key.new(file: file) - File.write(file, key.to_s) + IO.write(file, key.to_s) pvt = Zold::Key.new(file: file) text = 'How are you doing, dude?' signature = pvt.sign(text) assert(pub.verify(signature, text)) end