We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7459c6a commit 8ffe059Copy full SHA for 8ffe059
1 file changed
core/io/buffer/map_spec.rb
@@ -261,6 +261,7 @@ def make_big_file_fixture
261
@file = File.open(make_big_file_fixture, "r+")
262
-> { IO::Buffer.map(@file, 17, IO::Buffer::PAGE_SIZE) }.should raise_error(ArgumentError, "Offset too large!")
263
ensure
264
+ @file.close unless @file.closed?
265
File.delete(@file.path)
266
end
267
0 commit comments