loop do
  File.open somefile, 'r' do |io|
    next
  end
end

Does somefile get closed?
How would I test that?
I have the same question if it raises an error (that gets rescued) or
throws a symbol.

Daniel Brumbaugh Keeney