test/minimal_file_reader.rb in iostreams-1.1.0 vs test/minimal_file_reader.rb in iostreams-1.1.1

- old
+ new

@@ -2,10 +2,10 @@ class MinimalFileReader def self.open(file_name) io = new(file_name) yield(io) ensure - io.close if io + io&.close end def initialize(file_name) @file = File.open(file_name) end