summaryrefslogtreecommitdiff
path: root/spec/ruby/library/zlib/gzipreader/read_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/ruby/library/zlib/gzipreader/read_spec.rb')
-rw-r--r--spec/ruby/library/zlib/gzipreader/read_spec.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/ruby/library/zlib/gzipreader/read_spec.rb b/spec/ruby/library/zlib/gzipreader/read_spec.rb
index 67672eb0b8..a13f087fe9 100644
--- a/spec/ruby/library/zlib/gzipreader/read_spec.rb
+++ b/spec/ruby/library/zlib/gzipreader/read_spec.rb
@@ -29,7 +29,7 @@ describe "GzipReader#read" do
it "does not accept a negative length to read" do
gz = Zlib::GzipReader.new @io
- lambda {
+ -> {
gz.read(-1)
}.should raise_error(ArgumentError)
end