summaryrefslogtreecommitdiff
path: root/spec/ruby/library/pathname
diff options
context:
space:
mode:
Diffstat (limited to 'spec/ruby/library/pathname')
-rw-r--r--spec/ruby/library/pathname/absolute_spec.rb2
-rw-r--r--spec/ruby/library/pathname/empty_spec.rb2
-rw-r--r--spec/ruby/library/pathname/equal_value_spec.rb2
-rw-r--r--spec/ruby/library/pathname/hash_spec.rb2
-rw-r--r--spec/ruby/library/pathname/join_spec.rb2
-rw-r--r--spec/ruby/library/pathname/new_spec.rb2
-rw-r--r--spec/ruby/library/pathname/parent_spec.rb2
-rw-r--r--spec/ruby/library/pathname/realdirpath_spec.rb2
-rw-r--r--spec/ruby/library/pathname/realpath_spec.rb2
-rw-r--r--spec/ruby/library/pathname/relative_path_from_spec.rb2
-rw-r--r--spec/ruby/library/pathname/relative_spec.rb2
-rw-r--r--spec/ruby/library/pathname/root_spec.rb2
-rw-r--r--spec/ruby/library/pathname/sub_spec.rb2
13 files changed, 13 insertions, 13 deletions
diff --git a/spec/ruby/library/pathname/absolute_spec.rb b/spec/ruby/library/pathname/absolute_spec.rb
index af0639493a..a754505765 100644
--- a/spec/ruby/library/pathname/absolute_spec.rb
+++ b/spec/ruby/library/pathname/absolute_spec.rb
@@ -1,4 +1,4 @@
-require File.expand_path('../../../spec_helper', __FILE__)
+require_relative '../../spec_helper'
require 'pathname'
describe "Pathname#absolute?" do
diff --git a/spec/ruby/library/pathname/empty_spec.rb b/spec/ruby/library/pathname/empty_spec.rb
index e573021491..6f46486a69 100644
--- a/spec/ruby/library/pathname/empty_spec.rb
+++ b/spec/ruby/library/pathname/empty_spec.rb
@@ -1,4 +1,4 @@
-require File.expand_path('../../../spec_helper', __FILE__)
+require_relative '../../spec_helper'
require 'pathname'
ruby_version_is '2.4' do
diff --git a/spec/ruby/library/pathname/equal_value_spec.rb b/spec/ruby/library/pathname/equal_value_spec.rb
index afcdb08de8..84e8d8f7ef 100644
--- a/spec/ruby/library/pathname/equal_value_spec.rb
+++ b/spec/ruby/library/pathname/equal_value_spec.rb
@@ -1,4 +1,4 @@
-require File.expand_path('../../../spec_helper', __FILE__)
+require_relative '../../spec_helper'
require 'pathname'
describe "Pathname#==" do
diff --git a/spec/ruby/library/pathname/hash_spec.rb b/spec/ruby/library/pathname/hash_spec.rb
index f3201e2f4f..a0bfe811f6 100644
--- a/spec/ruby/library/pathname/hash_spec.rb
+++ b/spec/ruby/library/pathname/hash_spec.rb
@@ -1,4 +1,4 @@
-require File.expand_path('../../../spec_helper', __FILE__)
+require_relative '../../spec_helper'
require 'pathname'
describe "Pathname#hash" do
diff --git a/spec/ruby/library/pathname/join_spec.rb b/spec/ruby/library/pathname/join_spec.rb
index 8c77bb1f59..a0877777fc 100644
--- a/spec/ruby/library/pathname/join_spec.rb
+++ b/spec/ruby/library/pathname/join_spec.rb
@@ -1,4 +1,4 @@
-require File.expand_path('../../../spec_helper', __FILE__)
+require_relative '../../spec_helper'
require 'pathname'
describe "Pathname#join" do
diff --git a/spec/ruby/library/pathname/new_spec.rb b/spec/ruby/library/pathname/new_spec.rb
index a888e98736..4f519af398 100644
--- a/spec/ruby/library/pathname/new_spec.rb
+++ b/spec/ruby/library/pathname/new_spec.rb
@@ -1,4 +1,4 @@
-require File.expand_path('../../../spec_helper', __FILE__)
+require_relative '../../spec_helper'
require 'pathname'
describe "Pathname.new" do
diff --git a/spec/ruby/library/pathname/parent_spec.rb b/spec/ruby/library/pathname/parent_spec.rb
index 53d3f1e50e..5804f88dd0 100644
--- a/spec/ruby/library/pathname/parent_spec.rb
+++ b/spec/ruby/library/pathname/parent_spec.rb
@@ -1,4 +1,4 @@
-require File.expand_path('../../../spec_helper', __FILE__)
+require_relative '../../spec_helper'
require 'pathname'
describe "Pathname#parent" do
diff --git a/spec/ruby/library/pathname/realdirpath_spec.rb b/spec/ruby/library/pathname/realdirpath_spec.rb
index f76e37602c..a9e44e354e 100644
--- a/spec/ruby/library/pathname/realdirpath_spec.rb
+++ b/spec/ruby/library/pathname/realdirpath_spec.rb
@@ -1,4 +1,4 @@
-require File.expand_path('../../../spec_helper', __FILE__)
+require_relative '../../spec_helper'
require 'pathname'
describe "Pathname#realdirpath" do
diff --git a/spec/ruby/library/pathname/realpath_spec.rb b/spec/ruby/library/pathname/realpath_spec.rb
index e1c9eb34ea..f2c654308e 100644
--- a/spec/ruby/library/pathname/realpath_spec.rb
+++ b/spec/ruby/library/pathname/realpath_spec.rb
@@ -1,4 +1,4 @@
-require File.expand_path('../../../spec_helper', __FILE__)
+require_relative '../../spec_helper'
require 'pathname'
describe "Pathname#realpath" do
diff --git a/spec/ruby/library/pathname/relative_path_from_spec.rb b/spec/ruby/library/pathname/relative_path_from_spec.rb
index 416eaa1a50..1a941be926 100644
--- a/spec/ruby/library/pathname/relative_path_from_spec.rb
+++ b/spec/ruby/library/pathname/relative_path_from_spec.rb
@@ -1,4 +1,4 @@
-require File.expand_path('../../../spec_helper', __FILE__)
+require_relative '../../spec_helper'
require 'pathname'
describe "Pathname#relative_path_from" do
diff --git a/spec/ruby/library/pathname/relative_spec.rb b/spec/ruby/library/pathname/relative_spec.rb
index a44d8c5a66..f3976fcf0d 100644
--- a/spec/ruby/library/pathname/relative_spec.rb
+++ b/spec/ruby/library/pathname/relative_spec.rb
@@ -1,4 +1,4 @@
-require File.expand_path('../../../spec_helper', __FILE__)
+require_relative '../../spec_helper'
require 'pathname'
describe "Pathname#relative?" do
diff --git a/spec/ruby/library/pathname/root_spec.rb b/spec/ruby/library/pathname/root_spec.rb
index a5efcf69b4..d1c2dbb6ff 100644
--- a/spec/ruby/library/pathname/root_spec.rb
+++ b/spec/ruby/library/pathname/root_spec.rb
@@ -1,4 +1,4 @@
-require File.expand_path('../../../spec_helper', __FILE__)
+require_relative '../../spec_helper'
require 'pathname'
describe "Pathname#root?" do
diff --git a/spec/ruby/library/pathname/sub_spec.rb b/spec/ruby/library/pathname/sub_spec.rb
index 36b6ebb247..2fb274e790 100644
--- a/spec/ruby/library/pathname/sub_spec.rb
+++ b/spec/ruby/library/pathname/sub_spec.rb
@@ -1,4 +1,4 @@
-require File.expand_path('../../../spec_helper', __FILE__)
+require_relative '../../spec_helper'
require 'pathname'
describe "Pathname#sub" do