test/writer_test.rb in symmetric-encryption-0.5.2 vs test/writer_test.rb in symmetric-encryption-0.6.0

- old
+ new

@@ -23,9 +23,13 @@ @data_len = @data_str.length @data_encrypted = SymmetricEncryption.cipher.encrypt(@data_str) @filename = '._test' end + teardown do + File.delete(@filename) if File.exist?(@filename) + end + should "encrypt to string stream" do stream = StringIO.new file = SymmetricEncryption::Writer.new(stream) written_len = @data.inject(0) {|sum,str| sum + file.write(str)} file.close