summaryrefslogtreecommitdiff
path: root/spec/ruby/library/zlib/inflate
diff options
context:
space:
mode:
Diffstat (limited to 'spec/ruby/library/zlib/inflate')
-rw-r--r--spec/ruby/library/zlib/inflate/append_spec.rb2
-rw-r--r--spec/ruby/library/zlib/inflate/inflate_spec.rb2
2 files changed, 2 insertions, 2 deletions
diff --git a/spec/ruby/library/zlib/inflate/append_spec.rb b/spec/ruby/library/zlib/inflate/append_spec.rb
index e1c357f82e..f121e66566 100644
--- a/spec/ruby/library/zlib/inflate/append_spec.rb
+++ b/spec/ruby/library/zlib/inflate/append_spec.rb
@@ -41,7 +41,7 @@ describe "Zlib::Inflate#<<" do
it "properly handles incomplete data" do
# add bytes, one by one
@foo_deflated[0, 5].each_byte { |d| @z << d.chr}
- lambda { @z.finish }.should raise_error(Zlib::BufError)
+ -> { @z.finish }.should raise_error(Zlib::BufError)
end
it "properly handles excessive data, byte-by-byte" do
diff --git a/spec/ruby/library/zlib/inflate/inflate_spec.rb b/spec/ruby/library/zlib/inflate/inflate_spec.rb
index 7d66fb039a..cc33bd4c32 100644
--- a/spec/ruby/library/zlib/inflate/inflate_spec.rb
+++ b/spec/ruby/library/zlib/inflate/inflate_spec.rb
@@ -77,7 +77,7 @@ describe "Zlib::Inflate.inflate" do
# add bytes, one by one, but not all
result = ""
data.each_byte { |d| result << z.inflate(d.chr)}
- lambda { result << z.finish }.should raise_error(Zlib::BufError)
+ -> { result << z.finish }.should raise_error(Zlib::BufError)
end
it "properly handles excessive data, byte-by-byte" do