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

- old
+ new

@@ -67,16 +67,15 @@ end end context "reading from file" do # With and without header - [false, true].each do |header| - context "with#{'out' unless header} header" do + [{:header => false}, {:header => true}, {:header => true, :compress => true}].each do |options| + context "with#{'out' unless options[:header]} header" do setup do @filename = '._test' - @options = { :header => header } # Create encrypted file - SymmetricEncryption::Writer.open(@filename, @options) do |file| + SymmetricEncryption::Writer.open(@filename, options) do |file| @data.inject(0) {|sum,str| sum + file.write(str)} end end teardown do \ No newline at end of file