test/reader_test.rb in symmetric-encryption-0.6.0 vs test/reader_test.rb in symmetric-encryption-0.6.1

- old
+ new

@@ -96,9 +96,19 @@ assert_equal @data[i], line i += 1 end end end + + should "support rewind" do + decrypted = SymmetricEncryption::Reader.open(@filename) do |file| + file.read + file.rewind + file.read + end + assert_equal @data_str, decrypted + end + end end end end \ No newline at end of file