summaryrefslogtreecommitdiff
path: root/spec/ruby/library/zlib
diff options
context:
space:
mode:
authoreregon <eregon@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-03-04 15:09:32 +0000
committereregon <eregon@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-03-04 15:09:32 +0000
commit401b64c4e840bc8887219e9e445a64b3d5943656 (patch)
tree989b93914e9a8ee57ef3ce0bb3d2e2083470fc49 /spec/ruby/library/zlib
parent8a15857a7f283101a3923b76c71a1f05bfe58512 (diff)
Update to ruby/spec@c1b568b
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@62656 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'spec/ruby/library/zlib')
-rw-r--r--spec/ruby/library/zlib/adler32_spec.rb2
-rw-r--r--spec/ruby/library/zlib/crc32_spec.rb2
-rw-r--r--spec/ruby/library/zlib/crc_table_spec.rb2
-rw-r--r--spec/ruby/library/zlib/deflate/append_spec.rb2
-rw-r--r--spec/ruby/library/zlib/deflate/deflate_spec.rb2
-rw-r--r--spec/ruby/library/zlib/deflate/flush_spec.rb2
-rw-r--r--spec/ruby/library/zlib/deflate/new_spec.rb2
-rw-r--r--spec/ruby/library/zlib/deflate/params_spec.rb2
-rw-r--r--spec/ruby/library/zlib/deflate/set_dictionary_spec.rb2
-rw-r--r--spec/ruby/library/zlib/gzipfile/close_spec.rb2
-rw-r--r--spec/ruby/library/zlib/gzipfile/closed_spec.rb2
-rw-r--r--spec/ruby/library/zlib/gzipfile/comment_spec.rb2
-rw-r--r--spec/ruby/library/zlib/gzipfile/crc_spec.rb2
-rw-r--r--spec/ruby/library/zlib/gzipfile/finish_spec.rb2
-rw-r--r--spec/ruby/library/zlib/gzipfile/level_spec.rb2
-rw-r--r--spec/ruby/library/zlib/gzipfile/mtime_spec.rb2
-rw-r--r--spec/ruby/library/zlib/gzipfile/orig_name_spec.rb2
-rw-r--r--spec/ruby/library/zlib/gzipfile/os_code_spec.rb2
-rw-r--r--spec/ruby/library/zlib/gzipfile/sync_spec.rb2
-rw-r--r--spec/ruby/library/zlib/gzipfile/to_io_spec.rb2
-rw-r--r--spec/ruby/library/zlib/gzipfile/wrap_spec.rb2
-rw-r--r--spec/ruby/library/zlib/gzipreader/each_byte_spec.rb2
-rw-r--r--spec/ruby/library/zlib/gzipreader/each_line_spec.rb2
-rw-r--r--spec/ruby/library/zlib/gzipreader/each_spec.rb2
-rw-r--r--spec/ruby/library/zlib/gzipreader/eof_spec.rb2
-rw-r--r--spec/ruby/library/zlib/gzipreader/getc_spec.rb2
-rw-r--r--spec/ruby/library/zlib/gzipreader/gets_spec.rb2
-rw-r--r--spec/ruby/library/zlib/gzipreader/lineno_spec.rb2
-rw-r--r--spec/ruby/library/zlib/gzipreader/new_spec.rb2
-rw-r--r--spec/ruby/library/zlib/gzipreader/open_spec.rb2
-rw-r--r--spec/ruby/library/zlib/gzipreader/pos_spec.rb2
-rw-r--r--spec/ruby/library/zlib/gzipreader/read_spec.rb2
-rw-r--r--spec/ruby/library/zlib/gzipreader/readchar_spec.rb2
-rw-r--r--spec/ruby/library/zlib/gzipreader/readline_spec.rb2
-rw-r--r--spec/ruby/library/zlib/gzipreader/readlines_spec.rb2
-rw-r--r--spec/ruby/library/zlib/gzipreader/readpartial_spec.rb2
-rw-r--r--spec/ruby/library/zlib/gzipreader/rewind_spec.rb2
-rw-r--r--spec/ruby/library/zlib/gzipreader/shared/each.rb2
-rw-r--r--spec/ruby/library/zlib/gzipreader/tell_spec.rb2
-rw-r--r--spec/ruby/library/zlib/gzipreader/ungetbyte_spec.rb2
-rw-r--r--spec/ruby/library/zlib/gzipreader/ungetc_spec.rb2
-rw-r--r--spec/ruby/library/zlib/gzipreader/unused_spec.rb2
-rw-r--r--spec/ruby/library/zlib/gzipwriter/append_spec.rb2
-rw-r--r--spec/ruby/library/zlib/gzipwriter/comment_spec.rb2
-rw-r--r--spec/ruby/library/zlib/gzipwriter/flush_spec.rb2
-rw-r--r--spec/ruby/library/zlib/gzipwriter/mtime_spec.rb2
-rw-r--r--spec/ruby/library/zlib/gzipwriter/new_spec.rb2
-rw-r--r--spec/ruby/library/zlib/gzipwriter/open_spec.rb2
-rw-r--r--spec/ruby/library/zlib/gzipwriter/orig_name_spec.rb2
-rw-r--r--spec/ruby/library/zlib/gzipwriter/pos_spec.rb2
-rw-r--r--spec/ruby/library/zlib/gzipwriter/print_spec.rb2
-rw-r--r--spec/ruby/library/zlib/gzipwriter/printf_spec.rb2
-rw-r--r--spec/ruby/library/zlib/gzipwriter/putc_spec.rb2
-rw-r--r--spec/ruby/library/zlib/gzipwriter/puts_spec.rb2
-rw-r--r--spec/ruby/library/zlib/gzipwriter/tell_spec.rb2
-rw-r--r--spec/ruby/library/zlib/gzipwriter/write_spec.rb2
-rw-r--r--spec/ruby/library/zlib/inflate/append_spec.rb2
-rw-r--r--spec/ruby/library/zlib/inflate/inflate_spec.rb2
-rw-r--r--spec/ruby/library/zlib/inflate/new_spec.rb2
-rw-r--r--spec/ruby/library/zlib/inflate/set_dictionary_spec.rb2
-rw-r--r--spec/ruby/library/zlib/inflate/sync_point_spec.rb2
-rw-r--r--spec/ruby/library/zlib/inflate/sync_spec.rb2
-rw-r--r--spec/ruby/library/zlib/zlib_version_spec.rb2
-rw-r--r--spec/ruby/library/zlib/zstream/adler_spec.rb2
-rw-r--r--spec/ruby/library/zlib/zstream/avail_in_spec.rb2
-rw-r--r--spec/ruby/library/zlib/zstream/avail_out_spec.rb2
-rw-r--r--spec/ruby/library/zlib/zstream/close_spec.rb2
-rw-r--r--spec/ruby/library/zlib/zstream/closed_spec.rb2
-rw-r--r--spec/ruby/library/zlib/zstream/data_type_spec.rb2
-rw-r--r--spec/ruby/library/zlib/zstream/end_spec.rb2
-rw-r--r--spec/ruby/library/zlib/zstream/ended_spec.rb2
-rw-r--r--spec/ruby/library/zlib/zstream/finish_spec.rb2
-rw-r--r--spec/ruby/library/zlib/zstream/finished_spec.rb2
-rw-r--r--spec/ruby/library/zlib/zstream/flush_next_in_spec.rb2
-rw-r--r--spec/ruby/library/zlib/zstream/flush_next_out_spec.rb2
-rw-r--r--spec/ruby/library/zlib/zstream/reset_spec.rb2
-rw-r--r--spec/ruby/library/zlib/zstream/stream_end_spec.rb2
-rw-r--r--spec/ruby/library/zlib/zstream/total_in_spec.rb2
-rw-r--r--spec/ruby/library/zlib/zstream/total_out_spec.rb2
79 files changed, 79 insertions, 79 deletions
diff --git a/spec/ruby/library/zlib/adler32_spec.rb b/spec/ruby/library/zlib/adler32_spec.rb
index 1767dc2011..1da12aece0 100644
--- a/spec/ruby/library/zlib/adler32_spec.rb
+++ b/spec/ruby/library/zlib/adler32_spec.rb
@@ -1,4 +1,4 @@
-require File.expand_path('../../../spec_helper', __FILE__)
+require_relative '../../spec_helper'
require 'zlib'
describe "Zlib.adler32" do
diff --git a/spec/ruby/library/zlib/crc32_spec.rb b/spec/ruby/library/zlib/crc32_spec.rb
index 22d1dac28b..5c39586ed9 100644
--- a/spec/ruby/library/zlib/crc32_spec.rb
+++ b/spec/ruby/library/zlib/crc32_spec.rb
@@ -1,4 +1,4 @@
-require File.expand_path('../../../spec_helper', __FILE__)
+require_relative '../../spec_helper'
require 'zlib'
describe "Zlib.crc32" do
diff --git a/spec/ruby/library/zlib/crc_table_spec.rb b/spec/ruby/library/zlib/crc_table_spec.rb
index 22aaa32233..f7fc2749fa 100644
--- a/spec/ruby/library/zlib/crc_table_spec.rb
+++ b/spec/ruby/library/zlib/crc_table_spec.rb
@@ -1,4 +1,4 @@
-require File.expand_path('../../../spec_helper', __FILE__)
+require_relative '../../spec_helper'
require "zlib"
describe "Zlib.crc_table" do
diff --git a/spec/ruby/library/zlib/deflate/append_spec.rb b/spec/ruby/library/zlib/deflate/append_spec.rb
index 6a4c1dadb4..e15f14f95f 100644
--- a/spec/ruby/library/zlib/deflate/append_spec.rb
+++ b/spec/ruby/library/zlib/deflate/append_spec.rb
@@ -1 +1 @@
-require File.expand_path('../../../../spec_helper', __FILE__)
+require_relative '../../../spec_helper'
diff --git a/spec/ruby/library/zlib/deflate/deflate_spec.rb b/spec/ruby/library/zlib/deflate/deflate_spec.rb
index 44b3389701..67bcf22d49 100644
--- a/spec/ruby/library/zlib/deflate/deflate_spec.rb
+++ b/spec/ruby/library/zlib/deflate/deflate_spec.rb
@@ -1,5 +1,5 @@
require 'zlib'
-require File.expand_path('../../../../spec_helper', __FILE__)
+require_relative '../../../spec_helper'
describe "Zlib::Deflate.deflate" do
it "deflates some data" do
diff --git a/spec/ruby/library/zlib/deflate/flush_spec.rb b/spec/ruby/library/zlib/deflate/flush_spec.rb
index 6a4c1dadb4..e15f14f95f 100644
--- a/spec/ruby/library/zlib/deflate/flush_spec.rb
+++ b/spec/ruby/library/zlib/deflate/flush_spec.rb
@@ -1 +1 @@
-require File.expand_path('../../../../spec_helper', __FILE__)
+require_relative '../../../spec_helper'
diff --git a/spec/ruby/library/zlib/deflate/new_spec.rb b/spec/ruby/library/zlib/deflate/new_spec.rb
index 6a4c1dadb4..e15f14f95f 100644
--- a/spec/ruby/library/zlib/deflate/new_spec.rb
+++ b/spec/ruby/library/zlib/deflate/new_spec.rb
@@ -1 +1 @@
-require File.expand_path('../../../../spec_helper', __FILE__)
+require_relative '../../../spec_helper'
diff --git a/spec/ruby/library/zlib/deflate/params_spec.rb b/spec/ruby/library/zlib/deflate/params_spec.rb
index 59b1353c07..0b1cca8c8a 100644
--- a/spec/ruby/library/zlib/deflate/params_spec.rb
+++ b/spec/ruby/library/zlib/deflate/params_spec.rb
@@ -1,4 +1,4 @@
-require File.expand_path('../../../../spec_helper', __FILE__)
+require_relative '../../../spec_helper'
require 'zlib'
describe "Zlib::Deflate#params" do
diff --git a/spec/ruby/library/zlib/deflate/set_dictionary_spec.rb b/spec/ruby/library/zlib/deflate/set_dictionary_spec.rb
index c5c62d9529..53ee4a2ae4 100644
--- a/spec/ruby/library/zlib/deflate/set_dictionary_spec.rb
+++ b/spec/ruby/library/zlib/deflate/set_dictionary_spec.rb
@@ -1,4 +1,4 @@
-require File.expand_path('../../../../spec_helper', __FILE__)
+require_relative '../../../spec_helper'
require 'zlib'
describe "Zlib::Deflate#set_dictionary" do
diff --git a/spec/ruby/library/zlib/gzipfile/close_spec.rb b/spec/ruby/library/zlib/gzipfile/close_spec.rb
index 9486d6b9ec..e26f79d004 100644
--- a/spec/ruby/library/zlib/gzipfile/close_spec.rb
+++ b/spec/ruby/library/zlib/gzipfile/close_spec.rb
@@ -1,4 +1,4 @@
-require File.expand_path('../../../../spec_helper', __FILE__)
+require_relative '../../../spec_helper'
require 'stringio'
require 'zlib'
diff --git a/spec/ruby/library/zlib/gzipfile/closed_spec.rb b/spec/ruby/library/zlib/gzipfile/closed_spec.rb
index 69785bc41c..8c5ef9a338 100644
--- a/spec/ruby/library/zlib/gzipfile/closed_spec.rb
+++ b/spec/ruby/library/zlib/gzipfile/closed_spec.rb
@@ -1,4 +1,4 @@
-require File.expand_path('../../../../spec_helper', __FILE__)
+require_relative '../../../spec_helper'
require 'stringio'
require 'zlib'
diff --git a/spec/ruby/library/zlib/gzipfile/comment_spec.rb b/spec/ruby/library/zlib/gzipfile/comment_spec.rb
index 638e85a4a7..d4cf086792 100644
--- a/spec/ruby/library/zlib/gzipfile/comment_spec.rb
+++ b/spec/ruby/library/zlib/gzipfile/comment_spec.rb
@@ -1,4 +1,4 @@
-require File.expand_path('../../../../spec_helper', __FILE__)
+require_relative '../../../spec_helper'
require 'stringio'
require 'zlib'
diff --git a/spec/ruby/library/zlib/gzipfile/crc_spec.rb b/spec/ruby/library/zlib/gzipfile/crc_spec.rb
index 6a4c1dadb4..e15f14f95f 100644
--- a/spec/ruby/library/zlib/gzipfile/crc_spec.rb
+++ b/spec/ruby/library/zlib/gzipfile/crc_spec.rb
@@ -1 +1 @@
-require File.expand_path('../../../../spec_helper', __FILE__)
+require_relative '../../../spec_helper'
diff --git a/spec/ruby/library/zlib/gzipfile/finish_spec.rb b/spec/ruby/library/zlib/gzipfile/finish_spec.rb
index 6a4c1dadb4..e15f14f95f 100644
--- a/spec/ruby/library/zlib/gzipfile/finish_spec.rb
+++ b/spec/ruby/library/zlib/gzipfile/finish_spec.rb
@@ -1 +1 @@
-require File.expand_path('../../../../spec_helper', __FILE__)
+require_relative '../../../spec_helper'
diff --git a/spec/ruby/library/zlib/gzipfile/level_spec.rb b/spec/ruby/library/zlib/gzipfile/level_spec.rb
index 6a4c1dadb4..e15f14f95f 100644
--- a/spec/ruby/library/zlib/gzipfile/level_spec.rb
+++ b/spec/ruby/library/zlib/gzipfile/level_spec.rb
@@ -1 +1 @@
-require File.expand_path('../../../../spec_helper', __FILE__)
+require_relative '../../../spec_helper'
diff --git a/spec/ruby/library/zlib/gzipfile/mtime_spec.rb b/spec/ruby/library/zlib/gzipfile/mtime_spec.rb
index 6a4c1dadb4..e15f14f95f 100644
--- a/spec/ruby/library/zlib/gzipfile/mtime_spec.rb
+++ b/spec/ruby/library/zlib/gzipfile/mtime_spec.rb
@@ -1 +1 @@
-require File.expand_path('../../../../spec_helper', __FILE__)
+require_relative '../../../spec_helper'
diff --git a/spec/ruby/library/zlib/gzipfile/orig_name_spec.rb b/spec/ruby/library/zlib/gzipfile/orig_name_spec.rb
index 42a3b2f376..a7a0990612 100644
--- a/spec/ruby/library/zlib/gzipfile/orig_name_spec.rb
+++ b/spec/ruby/library/zlib/gzipfile/orig_name_spec.rb
@@ -1,4 +1,4 @@
-require File.expand_path('../../../../spec_helper', __FILE__)
+require_relative '../../../spec_helper'
require 'stringio'
require 'zlib'
diff --git a/spec/ruby/library/zlib/gzipfile/os_code_spec.rb b/spec/ruby/library/zlib/gzipfile/os_code_spec.rb
index 6a4c1dadb4..e15f14f95f 100644
--- a/spec/ruby/library/zlib/gzipfile/os_code_spec.rb
+++ b/spec/ruby/library/zlib/gzipfile/os_code_spec.rb
@@ -1 +1 @@
-require File.expand_path('../../../../spec_helper', __FILE__)
+require_relative '../../../spec_helper'
diff --git a/spec/ruby/library/zlib/gzipfile/sync_spec.rb b/spec/ruby/library/zlib/gzipfile/sync_spec.rb
index 6a4c1dadb4..e15f14f95f 100644
--- a/spec/ruby/library/zlib/gzipfile/sync_spec.rb
+++ b/spec/ruby/library/zlib/gzipfile/sync_spec.rb
@@ -1 +1 @@
-require File.expand_path('../../../../spec_helper', __FILE__)
+require_relative '../../../spec_helper'
diff --git a/spec/ruby/library/zlib/gzipfile/to_io_spec.rb b/spec/ruby/library/zlib/gzipfile/to_io_spec.rb
index 6a4c1dadb4..e15f14f95f 100644
--- a/spec/ruby/library/zlib/gzipfile/to_io_spec.rb
+++ b/spec/ruby/library/zlib/gzipfile/to_io_spec.rb
@@ -1 +1 @@
-require File.expand_path('../../../../spec_helper', __FILE__)
+require_relative '../../../spec_helper'
diff --git a/spec/ruby/library/zlib/gzipfile/wrap_spec.rb b/spec/ruby/library/zlib/gzipfile/wrap_spec.rb
index 6a4c1dadb4..e15f14f95f 100644
--- a/spec/ruby/library/zlib/gzipfile/wrap_spec.rb
+++ b/spec/ruby/library/zlib/gzipfile/wrap_spec.rb
@@ -1 +1 @@
-require File.expand_path('../../../../spec_helper', __FILE__)
+require_relative '../../../spec_helper'
diff --git a/spec/ruby/library/zlib/gzipreader/each_byte_spec.rb b/spec/ruby/library/zlib/gzipreader/each_byte_spec.rb
index 6da9ac8323..d2c43ecaa4 100644
--- a/spec/ruby/library/zlib/gzipreader/each_byte_spec.rb
+++ b/spec/ruby/library/zlib/gzipreader/each_byte_spec.rb
@@ -1,4 +1,4 @@
-require File.expand_path('../../../../spec_helper', __FILE__)
+require_relative '../../../spec_helper'
require 'stringio'
require 'zlib'
diff --git a/spec/ruby/library/zlib/gzipreader/each_line_spec.rb b/spec/ruby/library/zlib/gzipreader/each_line_spec.rb
index 7ff116a258..b576788e27 100644
--- a/spec/ruby/library/zlib/gzipreader/each_line_spec.rb
+++ b/spec/ruby/library/zlib/gzipreader/each_line_spec.rb
@@ -1,4 +1,4 @@
-require File.expand_path('../shared/each', __FILE__)
+require_relative 'shared/each'
describe "GzipReader#each_line" do
it_behaves_like :gzipreader_each, :each_line
diff --git a/spec/ruby/library/zlib/gzipreader/each_spec.rb b/spec/ruby/library/zlib/gzipreader/each_spec.rb
index dd780e4083..f9b90be316 100644
--- a/spec/ruby/library/zlib/gzipreader/each_spec.rb
+++ b/spec/ruby/library/zlib/gzipreader/each_spec.rb
@@ -1,4 +1,4 @@
-require File.expand_path('../shared/each', __FILE__)
+require_relative 'shared/each'
describe "GzipReader#each" do
it_behaves_like :gzipreader_each, :each
diff --git a/spec/ruby/library/zlib/gzipreader/eof_spec.rb b/spec/ruby/library/zlib/gzipreader/eof_spec.rb
index 446cbfec37..e33d8e3133 100644
--- a/spec/ruby/library/zlib/gzipreader/eof_spec.rb
+++ b/spec/ruby/library/zlib/gzipreader/eof_spec.rb
@@ -1,4 +1,4 @@
-require File.expand_path('../../../../spec_helper', __FILE__)
+require_relative '../../../spec_helper'
require 'stringio'
require 'zlib'
diff --git a/spec/ruby/library/zlib/gzipreader/getc_spec.rb b/spec/ruby/library/zlib/gzipreader/getc_spec.rb
index a3c4aecf76..90b5ffe37a 100644
--- a/spec/ruby/library/zlib/gzipreader/getc_spec.rb
+++ b/spec/ruby/library/zlib/gzipreader/getc_spec.rb
@@ -1,4 +1,4 @@
-require File.expand_path('../../../../spec_helper', __FILE__)
+require_relative '../../../spec_helper'
require 'stringio'
require 'zlib'
diff --git a/spec/ruby/library/zlib/gzipreader/gets_spec.rb b/spec/ruby/library/zlib/gzipreader/gets_spec.rb
index d49adc2850..8e4465e49c 100644
--- a/spec/ruby/library/zlib/gzipreader/gets_spec.rb
+++ b/spec/ruby/library/zlib/gzipreader/gets_spec.rb
@@ -1,4 +1,4 @@
-require File.expand_path('../../../../spec_helper', __FILE__)
+require_relative '../../../spec_helper'
require 'zlib'
require 'stringio'
diff --git a/spec/ruby/library/zlib/gzipreader/lineno_spec.rb b/spec/ruby/library/zlib/gzipreader/lineno_spec.rb
index 6a4c1dadb4..e15f14f95f 100644
--- a/spec/ruby/library/zlib/gzipreader/lineno_spec.rb
+++ b/spec/ruby/library/zlib/gzipreader/lineno_spec.rb
@@ -1 +1 @@
-require File.expand_path('../../../../spec_helper', __FILE__)
+require_relative '../../../spec_helper'
diff --git a/spec/ruby/library/zlib/gzipreader/new_spec.rb b/spec/ruby/library/zlib/gzipreader/new_spec.rb
index 6a4c1dadb4..e15f14f95f 100644
--- a/spec/ruby/library/zlib/gzipreader/new_spec.rb
+++ b/spec/ruby/library/zlib/gzipreader/new_spec.rb
@@ -1 +1 @@
-require File.expand_path('../../../../spec_helper', __FILE__)
+require_relative '../../../spec_helper'
diff --git a/spec/ruby/library/zlib/gzipreader/open_spec.rb b/spec/ruby/library/zlib/gzipreader/open_spec.rb
index 6a4c1dadb4..e15f14f95f 100644
--- a/spec/ruby/library/zlib/gzipreader/open_spec.rb
+++ b/spec/ruby/library/zlib/gzipreader/open_spec.rb
@@ -1 +1 @@
-require File.expand_path('../../../../spec_helper', __FILE__)
+require_relative '../../../spec_helper'
diff --git a/spec/ruby/library/zlib/gzipreader/pos_spec.rb b/spec/ruby/library/zlib/gzipreader/pos_spec.rb
index 66fbf388d8..9b508de468 100644
--- a/spec/ruby/library/zlib/gzipreader/pos_spec.rb
+++ b/spec/ruby/library/zlib/gzipreader/pos_spec.rb
@@ -1,4 +1,4 @@
-require File.expand_path('../../../../spec_helper', __FILE__)
+require_relative '../../../spec_helper'
require 'stringio'
require 'zlib'
diff --git a/spec/ruby/library/zlib/gzipreader/read_spec.rb b/spec/ruby/library/zlib/gzipreader/read_spec.rb
index 337f507502..a90b2bf498 100644
--- a/spec/ruby/library/zlib/gzipreader/read_spec.rb
+++ b/spec/ruby/library/zlib/gzipreader/read_spec.rb
@@ -1,4 +1,4 @@
-require File.expand_path('../../../../spec_helper', __FILE__)
+require_relative '../../../spec_helper'
require 'stringio'
require 'zlib'
diff --git a/spec/ruby/library/zlib/gzipreader/readchar_spec.rb b/spec/ruby/library/zlib/gzipreader/readchar_spec.rb
index 6a4c1dadb4..e15f14f95f 100644
--- a/spec/ruby/library/zlib/gzipreader/readchar_spec.rb
+++ b/spec/ruby/library/zlib/gzipreader/readchar_spec.rb
@@ -1 +1 @@
-require File.expand_path('../../../../spec_helper', __FILE__)
+require_relative '../../../spec_helper'
diff --git a/spec/ruby/library/zlib/gzipreader/readline_spec.rb b/spec/ruby/library/zlib/gzipreader/readline_spec.rb
index 6a4c1dadb4..e15f14f95f 100644
--- a/spec/ruby/library/zlib/gzipreader/readline_spec.rb
+++ b/spec/ruby/library/zlib/gzipreader/readline_spec.rb
@@ -1 +1 @@
-require File.expand_path('../../../../spec_helper', __FILE__)
+require_relative '../../../spec_helper'
diff --git a/spec/ruby/library/zlib/gzipreader/readlines_spec.rb b/spec/ruby/library/zlib/gzipreader/readlines_spec.rb
index 6a4c1dadb4..e15f14f95f 100644
--- a/spec/ruby/library/zlib/gzipreader/readlines_spec.rb
+++ b/spec/ruby/library/zlib/gzipreader/readlines_spec.rb
@@ -1 +1 @@
-require File.expand_path('../../../../spec_helper', __FILE__)
+require_relative '../../../spec_helper'
diff --git a/spec/ruby/library/zlib/gzipreader/readpartial_spec.rb b/spec/ruby/library/zlib/gzipreader/readpartial_spec.rb
index 2cdef54fd1..a367e5b856 100644
--- a/spec/ruby/library/zlib/gzipreader/readpartial_spec.rb
+++ b/spec/ruby/library/zlib/gzipreader/readpartial_spec.rb
@@ -1,4 +1,4 @@
-require File.expand_path('../../../../spec_helper', __FILE__)
+require_relative '../../../spec_helper'
require 'stringio'
require 'zlib'
diff --git a/spec/ruby/library/zlib/gzipreader/rewind_spec.rb b/spec/ruby/library/zlib/gzipreader/rewind_spec.rb
index 70bee3372d..2e22458b43 100644
--- a/spec/ruby/library/zlib/gzipreader/rewind_spec.rb
+++ b/spec/ruby/library/zlib/gzipreader/rewind_spec.rb
@@ -1,4 +1,4 @@
-require File.expand_path('../../../../spec_helper', __FILE__)
+require_relative '../../../spec_helper'
require 'stringio'
require 'zlib'
diff --git a/spec/ruby/library/zlib/gzipreader/shared/each.rb b/spec/ruby/library/zlib/gzipreader/shared/each.rb
index 47cd284b6a..11c15d8a66 100644
--- a/spec/ruby/library/zlib/gzipreader/shared/each.rb
+++ b/spec/ruby/library/zlib/gzipreader/shared/each.rb
@@ -1,4 +1,4 @@
-require File.expand_path('../../../../../spec_helper', __FILE__)
+require_relative '../../../../spec_helper'
require 'stringio'
require 'zlib'
diff --git a/spec/ruby/library/zlib/gzipreader/tell_spec.rb b/spec/ruby/library/zlib/gzipreader/tell_spec.rb
index 6a4c1dadb4..e15f14f95f 100644
--- a/spec/ruby/library/zlib/gzipreader/tell_spec.rb
+++ b/spec/ruby/library/zlib/gzipreader/tell_spec.rb
@@ -1 +1 @@
-require File.expand_path('../../../../spec_helper', __FILE__)
+require_relative '../../../spec_helper'
diff --git a/spec/ruby/library/zlib/gzipreader/ungetbyte_spec.rb b/spec/ruby/library/zlib/gzipreader/ungetbyte_spec.rb
index 16f1c12272..f29927e20b 100644
--- a/spec/ruby/library/zlib/gzipreader/ungetbyte_spec.rb
+++ b/spec/ruby/library/zlib/gzipreader/ungetbyte_spec.rb
@@ -1,4 +1,4 @@
-require File.expand_path('../../../../spec_helper', __FILE__)
+require_relative '../../../spec_helper'
require 'stringio'
require 'zlib'
diff --git a/spec/ruby/library/zlib/gzipreader/ungetc_spec.rb b/spec/ruby/library/zlib/gzipreader/ungetc_spec.rb
index 2d218e8d19..d749d58cca 100644
--- a/spec/ruby/library/zlib/gzipreader/ungetc_spec.rb
+++ b/spec/ruby/library/zlib/gzipreader/ungetc_spec.rb
@@ -1,4 +1,4 @@
-require File.expand_path('../../../../spec_helper', __FILE__)
+require_relative '../../../spec_helper'
require 'stringio'
require 'zlib'
diff --git a/spec/ruby/library/zlib/gzipreader/unused_spec.rb b/spec/ruby/library/zlib/gzipreader/unused_spec.rb
index 6a4c1dadb4..e15f14f95f 100644
--- a/spec/ruby/library/zlib/gzipreader/unused_spec.rb
+++ b/spec/ruby/library/zlib/gzipreader/unused_spec.rb
@@ -1 +1 @@
-require File.expand_path('../../../../spec_helper', __FILE__)
+require_relative '../../../spec_helper'
diff --git a/spec/ruby/library/zlib/gzipwriter/append_spec.rb b/spec/ruby/library/zlib/gzipwriter/append_spec.rb
index 922e921840..9404dbd8b2 100644
--- a/spec/ruby/library/zlib/gzipwriter/append_spec.rb
+++ b/spec/ruby/library/zlib/gzipwriter/append_spec.rb
@@ -1,4 +1,4 @@
-require File.expand_path('../../../../spec_helper', __FILE__)
+require_relative '../../../spec_helper'
require 'stringio'
require 'zlib'
diff --git a/spec/ruby/library/zlib/gzipwriter/comment_spec.rb b/spec/ruby/library/zlib/gzipwriter/comment_spec.rb
index 6a4c1dadb4..e15f14f95f 100644
--- a/spec/ruby/library/zlib/gzipwriter/comment_spec.rb
+++ b/spec/ruby/library/zlib/gzipwriter/comment_spec.rb
@@ -1 +1 @@
-require File.expand_path('../../../../spec_helper', __FILE__)
+require_relative '../../../spec_helper'
diff --git a/spec/ruby/library/zlib/gzipwriter/flush_spec.rb b/spec/ruby/library/zlib/gzipwriter/flush_spec.rb
index 6a4c1dadb4..e15f14f95f 100644
--- a/spec/ruby/library/zlib/gzipwriter/flush_spec.rb
+++ b/spec/ruby/library/zlib/gzipwriter/flush_spec.rb
@@ -1 +1 @@
-require File.expand_path('../../../../spec_helper', __FILE__)
+require_relative '../../../spec_helper'
diff --git a/spec/ruby/library/zlib/gzipwriter/mtime_spec.rb b/spec/ruby/library/zlib/gzipwriter/mtime_spec.rb
index af7a4ac735..96e2b18368 100644
--- a/spec/ruby/library/zlib/gzipwriter/mtime_spec.rb
+++ b/spec/ruby/library/zlib/gzipwriter/mtime_spec.rb
@@ -1,4 +1,4 @@
-require File.expand_path('../../../../spec_helper', __FILE__)
+require_relative '../../../spec_helper'
require 'stringio'
require 'zlib'
diff --git a/spec/ruby/library/zlib/gzipwriter/new_spec.rb b/spec/ruby/library/zlib/gzipwriter/new_spec.rb
index 6a4c1dadb4..e15f14f95f 100644
--- a/spec/ruby/library/zlib/gzipwriter/new_spec.rb
+++ b/spec/ruby/library/zlib/gzipwriter/new_spec.rb
@@ -1 +1 @@
-require File.expand_path('../../../../spec_helper', __FILE__)
+require_relative '../../../spec_helper'
diff --git a/spec/ruby/library/zlib/gzipwriter/open_spec.rb b/spec/ruby/library/zlib/gzipwriter/open_spec.rb
index 6a4c1dadb4..e15f14f95f 100644
--- a/spec/ruby/library/zlib/gzipwriter/open_spec.rb
+++ b/spec/ruby/library/zlib/gzipwriter/open_spec.rb
@@ -1 +1 @@
-require File.expand_path('../../../../spec_helper', __FILE__)
+require_relative '../../../spec_helper'
diff --git a/spec/ruby/library/zlib/gzipwriter/orig_name_spec.rb b/spec/ruby/library/zlib/gzipwriter/orig_name_spec.rb
index 6a4c1dadb4..e15f14f95f 100644
--- a/spec/ruby/library/zlib/gzipwriter/orig_name_spec.rb
+++ b/spec/ruby/library/zlib/gzipwriter/orig_name_spec.rb
@@ -1 +1 @@
-require File.expand_path('../../../../spec_helper', __FILE__)
+require_relative '../../../spec_helper'
diff --git a/spec/ruby/library/zlib/gzipwriter/pos_spec.rb b/spec/ruby/library/zlib/gzipwriter/pos_spec.rb
index 6a4c1dadb4..e15f14f95f 100644
--- a/spec/ruby/library/zlib/gzipwriter/pos_spec.rb
+++ b/spec/ruby/library/zlib/gzipwriter/pos_spec.rb
@@ -1 +1 @@
-require File.expand_path('../../../../spec_helper', __FILE__)
+require_relative '../../../spec_helper'
diff --git a/spec/ruby/library/zlib/gzipwriter/print_spec.rb b/spec/ruby/library/zlib/gzipwriter/print_spec.rb
index 6a4c1dadb4..e15f14f95f 100644
--- a/spec/ruby/library/zlib/gzipwriter/print_spec.rb
+++ b/spec/ruby/library/zlib/gzipwriter/print_spec.rb
@@ -1 +1 @@
-require File.expand_path('../../../../spec_helper', __FILE__)
+require_relative '../../../spec_helper'
diff --git a/spec/ruby/library/zlib/gzipwriter/printf_spec.rb b/spec/ruby/library/zlib/gzipwriter/printf_spec.rb
index 6a4c1dadb4..e15f14f95f 100644
--- a/spec/ruby/library/zlib/gzipwriter/printf_spec.rb
+++ b/spec/ruby/library/zlib/gzipwriter/printf_spec.rb
@@ -1 +1 @@
-require File.expand_path('../../../../spec_helper', __FILE__)
+require_relative '../../../spec_helper'
diff --git a/spec/ruby/library/zlib/gzipwriter/putc_spec.rb b/spec/ruby/library/zlib/gzipwriter/putc_spec.rb
index 6a4c1dadb4..e15f14f95f 100644
--- a/spec/ruby/library/zlib/gzipwriter/putc_spec.rb
+++ b/spec/ruby/library/zlib/gzipwriter/putc_spec.rb
@@ -1 +1 @@
-require File.expand_path('../../../../spec_helper', __FILE__)
+require_relative '../../../spec_helper'
diff --git a/spec/ruby/library/zlib/gzipwriter/puts_spec.rb b/spec/ruby/library/zlib/gzipwriter/puts_spec.rb
index 6a4c1dadb4..e15f14f95f 100644
--- a/spec/ruby/library/zlib/gzipwriter/puts_spec.rb
+++ b/spec/ruby/library/zlib/gzipwriter/puts_spec.rb
@@ -1 +1 @@
-require File.expand_path('../../../../spec_helper', __FILE__)
+require_relative '../../../spec_helper'
diff --git a/spec/ruby/library/zlib/gzipwriter/tell_spec.rb b/spec/ruby/library/zlib/gzipwriter/tell_spec.rb
index 6a4c1dadb4..e15f14f95f 100644
--- a/spec/ruby/library/zlib/gzipwriter/tell_spec.rb
+++ b/spec/ruby/library/zlib/gzipwriter/tell_spec.rb
@@ -1 +1 @@
-require File.expand_path('../../../../spec_helper', __FILE__)
+require_relative '../../../spec_helper'
diff --git a/spec/ruby/library/zlib/gzipwriter/write_spec.rb b/spec/ruby/library/zlib/gzipwriter/write_spec.rb
index 5ff4241423..f694ce7cb7 100644
--- a/spec/ruby/library/zlib/gzipwriter/write_spec.rb
+++ b/spec/ruby/library/zlib/gzipwriter/write_spec.rb
@@ -1,4 +1,4 @@
-require File.expand_path('../../../../spec_helper', __FILE__)
+require_relative '../../../spec_helper'
require 'stringio'
require 'zlib'
diff --git a/spec/ruby/library/zlib/inflate/append_spec.rb b/spec/ruby/library/zlib/inflate/append_spec.rb
index a768a766a2..e1c357f82e 100644
--- a/spec/ruby/library/zlib/inflate/append_spec.rb
+++ b/spec/ruby/library/zlib/inflate/append_spec.rb
@@ -1,4 +1,4 @@
-require File.expand_path('../../../../spec_helper', __FILE__)
+require_relative '../../../spec_helper'
require 'zlib'
describe "Zlib::Inflate#<<" do
diff --git a/spec/ruby/library/zlib/inflate/inflate_spec.rb b/spec/ruby/library/zlib/inflate/inflate_spec.rb
index 1fa16d9e98..7d66fb039a 100644
--- a/spec/ruby/library/zlib/inflate/inflate_spec.rb
+++ b/spec/ruby/library/zlib/inflate/inflate_spec.rb
@@ -1,5 +1,5 @@
require 'zlib'
-require File.expand_path('../../../../spec_helper', __FILE__)
+require_relative '../../../spec_helper'
describe "Zlib::Inflate#inflate" do
diff --git a/spec/ruby/library/zlib/inflate/new_spec.rb b/spec/ruby/library/zlib/inflate/new_spec.rb
index 6a4c1dadb4..e15f14f95f 100644
--- a/spec/ruby/library/zlib/inflate/new_spec.rb
+++ b/spec/ruby/library/zlib/inflate/new_spec.rb
@@ -1 +1 @@
-require File.expand_path('../../../../spec_helper', __FILE__)
+require_relative '../../../spec_helper'
diff --git a/spec/ruby/library/zlib/inflate/set_dictionary_spec.rb b/spec/ruby/library/zlib/inflate/set_dictionary_spec.rb
index 890815b8e6..e5e347a6da 100644
--- a/spec/ruby/library/zlib/inflate/set_dictionary_spec.rb
+++ b/spec/ruby/library/zlib/inflate/set_dictionary_spec.rb
@@ -1,5 +1,5 @@
# -*- encoding: binary -*-
-require File.expand_path('../../../../spec_helper', __FILE__)
+require_relative '../../../spec_helper'
require 'zlib'
describe "Zlib::Inflate#set_dictionary" do
diff --git a/spec/ruby/library/zlib/inflate/sync_point_spec.rb b/spec/ruby/library/zlib/inflate/sync_point_spec.rb
index 6a4c1dadb4..e15f14f95f 100644
--- a/spec/ruby/library/zlib/inflate/sync_point_spec.rb
+++ b/spec/ruby/library/zlib/inflate/sync_point_spec.rb
@@ -1 +1 @@
-require File.expand_path('../../../../spec_helper', __FILE__)
+require_relative '../../../spec_helper'
diff --git a/spec/ruby/library/zlib/inflate/sync_spec.rb b/spec/ruby/library/zlib/inflate/sync_spec.rb
index 6a4c1dadb4..e15f14f95f 100644
--- a/spec/ruby/library/zlib/inflate/sync_spec.rb
+++ b/spec/ruby/library/zlib/inflate/sync_spec.rb
@@ -1 +1 @@
-require File.expand_path('../../../../spec_helper', __FILE__)
+require_relative '../../../spec_helper'
diff --git a/spec/ruby/library/zlib/zlib_version_spec.rb b/spec/ruby/library/zlib/zlib_version_spec.rb
index 14fb93ef07..e724feaa39 100644
--- a/spec/ruby/library/zlib/zlib_version_spec.rb
+++ b/spec/ruby/library/zlib/zlib_version_spec.rb
@@ -1 +1 @@
-require File.expand_path('../../../spec_helper', __FILE__)
+require_relative '../../spec_helper'
diff --git a/spec/ruby/library/zlib/zstream/adler_spec.rb b/spec/ruby/library/zlib/zstream/adler_spec.rb
index e562fd260e..55ac8ae79e 100644
--- a/spec/ruby/library/zlib/zstream/adler_spec.rb
+++ b/spec/ruby/library/zlib/zstream/adler_spec.rb
@@ -1,4 +1,4 @@
-require File.expand_path('../../../../spec_helper', __FILE__)
+require_relative '../../../spec_helper'
require 'zlib'
describe "Zlib::ZStream#adler" do
diff --git a/spec/ruby/library/zlib/zstream/avail_in_spec.rb b/spec/ruby/library/zlib/zstream/avail_in_spec.rb
index 25d3219a5a..eddae15830 100644
--- a/spec/ruby/library/zlib/zstream/avail_in_spec.rb
+++ b/spec/ruby/library/zlib/zstream/avail_in_spec.rb
@@ -1,4 +1,4 @@
-require File.expand_path('../../../../spec_helper', __FILE__)
+require_relative '../../../spec_helper'
require 'zlib'
describe "Zlib::ZStream#avail_in" do
diff --git a/spec/ruby/library/zlib/zstream/avail_out_spec.rb b/spec/ruby/library/zlib/zstream/avail_out_spec.rb
index c747bbbc2f..2e5a394ec0 100644
--- a/spec/ruby/library/zlib/zstream/avail_out_spec.rb
+++ b/spec/ruby/library/zlib/zstream/avail_out_spec.rb
@@ -1,4 +1,4 @@
-require File.expand_path('../../../../spec_helper', __FILE__)
+require_relative '../../../spec_helper'
require 'zlib'
describe "Zlib::ZStream#avail_out" do
diff --git a/spec/ruby/library/zlib/zstream/close_spec.rb b/spec/ruby/library/zlib/zstream/close_spec.rb
index 6a4c1dadb4..e15f14f95f 100644
--- a/spec/ruby/library/zlib/zstream/close_spec.rb
+++ b/spec/ruby/library/zlib/zstream/close_spec.rb
@@ -1 +1 @@
-require File.expand_path('../../../../spec_helper', __FILE__)
+require_relative '../../../spec_helper'
diff --git a/spec/ruby/library/zlib/zstream/closed_spec.rb b/spec/ruby/library/zlib/zstream/closed_spec.rb
index 6a4c1dadb4..e15f14f95f 100644
--- a/spec/ruby/library/zlib/zstream/closed_spec.rb
+++ b/spec/ruby/library/zlib/zstream/closed_spec.rb
@@ -1 +1 @@
-require File.expand_path('../../../../spec_helper', __FILE__)
+require_relative '../../../spec_helper'
diff --git a/spec/ruby/library/zlib/zstream/data_type_spec.rb b/spec/ruby/library/zlib/zstream/data_type_spec.rb
index 614f0d10a2..8be96adf7c 100644
--- a/spec/ruby/library/zlib/zstream/data_type_spec.rb
+++ b/spec/ruby/library/zlib/zstream/data_type_spec.rb
@@ -1,4 +1,4 @@
-require File.expand_path('../../../../spec_helper', __FILE__)
+require_relative '../../../spec_helper'
require 'zlib'
describe "Zlib::ZStream#data_type" do
diff --git a/spec/ruby/library/zlib/zstream/end_spec.rb b/spec/ruby/library/zlib/zstream/end_spec.rb
index 6a4c1dadb4..e15f14f95f 100644
--- a/spec/ruby/library/zlib/zstream/end_spec.rb
+++ b/spec/ruby/library/zlib/zstream/end_spec.rb
@@ -1 +1 @@
-require File.expand_path('../../../../spec_helper', __FILE__)
+require_relative '../../../spec_helper'
diff --git a/spec/ruby/library/zlib/zstream/ended_spec.rb b/spec/ruby/library/zlib/zstream/ended_spec.rb
index 6a4c1dadb4..e15f14f95f 100644
--- a/spec/ruby/library/zlib/zstream/ended_spec.rb
+++ b/spec/ruby/library/zlib/zstream/ended_spec.rb
@@ -1 +1 @@
-require File.expand_path('../../../../spec_helper', __FILE__)
+require_relative '../../../spec_helper'
diff --git a/spec/ruby/library/zlib/zstream/finish_spec.rb b/spec/ruby/library/zlib/zstream/finish_spec.rb
index 6a4c1dadb4..e15f14f95f 100644
--- a/spec/ruby/library/zlib/zstream/finish_spec.rb
+++ b/spec/ruby/library/zlib/zstream/finish_spec.rb
@@ -1 +1 @@
-require File.expand_path('../../../../spec_helper', __FILE__)
+require_relative '../../../spec_helper'
diff --git a/spec/ruby/library/zlib/zstream/finished_spec.rb b/spec/ruby/library/zlib/zstream/finished_spec.rb
index 6a4c1dadb4..e15f14f95f 100644
--- a/spec/ruby/library/zlib/zstream/finished_spec.rb
+++ b/spec/ruby/library/zlib/zstream/finished_spec.rb
@@ -1 +1 @@
-require File.expand_path('../../../../spec_helper', __FILE__)
+require_relative '../../../spec_helper'
diff --git a/spec/ruby/library/zlib/zstream/flush_next_in_spec.rb b/spec/ruby/library/zlib/zstream/flush_next_in_spec.rb
index 6a4c1dadb4..e15f14f95f 100644
--- a/spec/ruby/library/zlib/zstream/flush_next_in_spec.rb
+++ b/spec/ruby/library/zlib/zstream/flush_next_in_spec.rb
@@ -1 +1 @@
-require File.expand_path('../../../../spec_helper', __FILE__)
+require_relative '../../../spec_helper'
diff --git a/spec/ruby/library/zlib/zstream/flush_next_out_spec.rb b/spec/ruby/library/zlib/zstream/flush_next_out_spec.rb
index 8ba8414cd1..f80d8287ce 100644
--- a/spec/ruby/library/zlib/zstream/flush_next_out_spec.rb
+++ b/spec/ruby/library/zlib/zstream/flush_next_out_spec.rb
@@ -1,4 +1,4 @@
-require File.expand_path('../../../../spec_helper', __FILE__)
+require_relative '../../../spec_helper'
require 'zlib'
describe "Zlib::ZStream#flush_next_out" do
diff --git a/spec/ruby/library/zlib/zstream/reset_spec.rb b/spec/ruby/library/zlib/zstream/reset_spec.rb
index 6a4c1dadb4..e15f14f95f 100644
--- a/spec/ruby/library/zlib/zstream/reset_spec.rb
+++ b/spec/ruby/library/zlib/zstream/reset_spec.rb
@@ -1 +1 @@
-require File.expand_path('../../../../spec_helper', __FILE__)
+require_relative '../../../spec_helper'
diff --git a/spec/ruby/library/zlib/zstream/stream_end_spec.rb b/spec/ruby/library/zlib/zstream/stream_end_spec.rb
index 6a4c1dadb4..e15f14f95f 100644
--- a/spec/ruby/library/zlib/zstream/stream_end_spec.rb
+++ b/spec/ruby/library/zlib/zstream/stream_end_spec.rb
@@ -1 +1 @@
-require File.expand_path('../../../../spec_helper', __FILE__)
+require_relative '../../../spec_helper'
diff --git a/spec/ruby/library/zlib/zstream/total_in_spec.rb b/spec/ruby/library/zlib/zstream/total_in_spec.rb
index 6a4c1dadb4..e15f14f95f 100644
--- a/spec/ruby/library/zlib/zstream/total_in_spec.rb
+++ b/spec/ruby/library/zlib/zstream/total_in_spec.rb
@@ -1 +1 @@
-require File.expand_path('../../../../spec_helper', __FILE__)
+require_relative '../../../spec_helper'
diff --git a/spec/ruby/library/zlib/zstream/total_out_spec.rb b/spec/ruby/library/zlib/zstream/total_out_spec.rb
index 6a4c1dadb4..e15f14f95f 100644
--- a/spec/ruby/library/zlib/zstream/total_out_spec.rb
+++ b/spec/ruby/library/zlib/zstream/total_out_spec.rb
@@ -1 +1 @@
-require File.expand_path('../../../../spec_helper', __FILE__)
+require_relative '../../../spec_helper'