summaryrefslogtreecommitdiff
path: root/spec/ruby/library/zlib/gzipfile
diff options
context:
space:
mode:
Diffstat (limited to 'spec/ruby/library/zlib/gzipfile')
-rw-r--r--spec/ruby/library/zlib/gzipfile/close_spec.rb4
-rw-r--r--spec/ruby/library/zlib/gzipfile/comment_spec.rb2
-rw-r--r--spec/ruby/library/zlib/gzipfile/orig_name_spec.rb2
3 files changed, 4 insertions, 4 deletions
diff --git a/spec/ruby/library/zlib/gzipfile/close_spec.rb b/spec/ruby/library/zlib/gzipfile/close_spec.rb
index 27eb34cdd9..870870f2fa 100644
--- a/spec/ruby/library/zlib/gzipfile/close_spec.rb
+++ b/spec/ruby/library/zlib/gzipfile/close_spec.rb
@@ -10,9 +10,9 @@ describe "Zlib::GzipFile#close" do
gzio.closed?.should == true
- lambda { gzio.orig_name }.should \
+ -> { gzio.orig_name }.should \
raise_error(Zlib::GzipFile::Error, 'closed gzip stream')
- lambda { gzio.comment }.should \
+ -> { gzio.comment }.should \
raise_error(Zlib::GzipFile::Error, 'closed gzip stream')
end
diff --git a/spec/ruby/library/zlib/gzipfile/comment_spec.rb b/spec/ruby/library/zlib/gzipfile/comment_spec.rb
index 7493f74f1c..70d97ecaf6 100644
--- a/spec/ruby/library/zlib/gzipfile/comment_spec.rb
+++ b/spec/ruby/library/zlib/gzipfile/comment_spec.rb
@@ -19,7 +19,7 @@ describe "Zlib::GzipFile#comment" do
Zlib::GzipWriter.wrap @io do |gzio|
gzio.close
- lambda { gzio.comment }.should \
+ -> { gzio.comment }.should \
raise_error(Zlib::GzipFile::Error, 'closed gzip stream')
end
end
diff --git a/spec/ruby/library/zlib/gzipfile/orig_name_spec.rb b/spec/ruby/library/zlib/gzipfile/orig_name_spec.rb
index cae5305355..ebfd3692af 100644
--- a/spec/ruby/library/zlib/gzipfile/orig_name_spec.rb
+++ b/spec/ruby/library/zlib/gzipfile/orig_name_spec.rb
@@ -19,7 +19,7 @@ describe "Zlib::GzipFile#orig_name" do
Zlib::GzipWriter.wrap @io do |gzio|
gzio.close
- lambda { gzio.orig_name }.should \
+ -> { gzio.orig_name }.should \
raise_error(Zlib::GzipFile::Error, 'closed gzip stream')
end
end