summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--spec/ruby/core/io/buffer/map_spec.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/spec/ruby/core/io/buffer/map_spec.rb b/spec/ruby/core/io/buffer/map_spec.rb
index 715aa9d344..d60036307f 100644
--- a/spec/ruby/core/io/buffer/map_spec.rb
+++ b/spec/ruby/core/io/buffer/map_spec.rb
@@ -105,6 +105,7 @@ describe "IO::Buffer.map" do
it "raises ArgumentError" do
file_name = tmp("empty.txt")
@file = File.open(file_name, "wb+")
+ @tmp_files << file_name
-> { IO::Buffer.map(@file) }.should raise_error(ArgumentError, "Invalid negative or zero file size!")
end
end