test/pgp_writer_test.rb in iostreams-1.2.1 vs test/pgp_writer_test.rb in iostreams-1.3.0
- old
+ new
@@ -51,12 +51,12 @@
result = IOStreams::Pgp::Reader.file(file_name, passphrase: "receiver_passphrase", &:read)
assert_equal decrypted, result
end
it "supports multiple recipients" do
- IOStreams::Pgp::Writer.file(file_name, recipient: %w[receiver@example.org receiver2@example.org], signer: "sender@example.org", signer_passphrase: "sender_passphrase") do |io|
- io.write(decrypted)
- end
+ IOStreams::Pgp::Writer.file(file_name, recipient: %w[receiver@example.org receiver2@example.org], signer: "sender@example.org", signer_passphrase: "sender_passphrase") do |io|
+ io.write(decrypted)
+ end
result = IOStreams::Pgp::Reader.file(file_name, passphrase: "receiver_passphrase", &:read)
assert_equal decrypted, result
result = IOStreams::Pgp::Reader.file(file_name, passphrase: "receiver2_passphrase", &:read)