test/reader_test.rb in symmetric-encryption-0.8.0 vs test/reader_test.rb in symmetric-encryption-0.9.0
- old
+ new
@@ -67,11 +67,11 @@
end
end
context "reading from file" do
# With and without header
- [{:header => false}, {:header => true}, {:header => true, :compress => true}].each do |options|
- context "with#{'out' unless options[:header]} header" do
+ [{:header => false}, {:compress => false}, {:compress => true}].each_with_index do |options, i|
+ context "with#{'out' unless options[:header]} header #{i}" do
setup do
@filename = '._test'
# Create encrypted file
SymmetricEncryption::Writer.open(@filename, options) do |file|
@data.inject(0) {|sum,str| sum + file.write(str)}
\ No newline at end of file