From 36b6f5cc12762709c285af52dc07394117596d7d Mon Sep 17 00:00:00 2001 From: nobu Date: Sat, 31 Mar 2018 11:11:31 +0000 Subject: [PATCH] use requrie_relative git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63047 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- spec/ruby/core/file/stat/ftype_spec.rb | 4 ++-- spec/ruby/core/method/shared/to_s.rb | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) 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