diff --git a/spec/ruby/core/file/stat/ftype_spec.rb b/spec/ruby/core/file/stat/ftype_spec.rb index 588c371c39..a19e7c43d7 100644 --- a/spec/ruby/core/file/stat/ftype_spec.rb +++ b/spec/ruby/core/file/stat/ftype_spec.rb @@ -1,5 +1,5 @@ -require "#{File.dirname(__FILE__)}/../../../spec_helper" -require "#{File.dirname(__FILE__)}/../fixtures/file_types" +require_relative '../../../spec_helper' +require_relative '../fixtures/file_types' describe "File::Stat#ftype" do before :all do diff --git a/spec/ruby/core/method/shared/to_s.rb b/spec/ruby/core/method/shared/to_s.rb index 239974c8e3..373398a785 100644 --- a/spec/ruby/core/method/shared/to_s.rb +++ b/spec/ruby/core/method/shared/to_s.rb @@ -1,5 +1,5 @@ -require "#{File.dirname __FILE__}/../../../spec_helper" -require "#{File.dirname __FILE__}/../fixtures/classes" +require_relative '../../../spec_helper' +require_relative '../fixtures/classes' describe :method_to_s, shared: true do before :each do