test/test_helper.rb in iostreams-0.18.0 vs test/test_helper.rb in iostreams-0.19.0
- old
+ new
@@ -30,5 +30,10 @@
end
unless IOStreams::Pgp.has_key?(email: 'receiver@example.org')
puts 'Generating test PGP key: receiver@example.org'
IOStreams::Pgp.generate_key(name: 'Receiver', email: 'receiver@example.org', passphrase: 'receiver_passphrase', key_length: 2048)
end
+
+# Test paths
+root = File.expand_path(File.join(__dir__, '../tmp'))
+IOStreams::Path.add_root(:default, File.join(root, 'default'))
+IOStreams::Path.add_root(:downloads, File.join(root, 'downloads'))