ruby-changes:50839
From: nobu <ko1@a...>
Date: Sat, 31 Mar 2018 19:34:20 +0900 (JST)
Subject: [ruby-changes:50839] nobu:r63046 (trunk): use require_relative
nobu 2018-03-31 19:34:16 +0900 (Sat, 31 Mar 2018) New Revision: 63046 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=63046 Log: use require_relative * spec/ruby/core/file/ftype_spec.rb: use require_relative which resolves symbolic links consistently to git rid of constant re-definition warnings. Modified files: trunk/spec/ruby/core/file/ftype_spec.rb Index: spec/ruby/core/file/ftype_spec.rb =================================================================== --- spec/ruby/core/file/ftype_spec.rb (revision 63045) +++ spec/ruby/core/file/ftype_spec.rb (revision 63046) @@ -1,5 +1,5 @@ https://github.com/ruby/ruby/blob/trunk/spec/ruby/core/file/ftype_spec.rb#L1 -require "#{File.dirname(__FILE__)}/../../spec_helper" -require "#{File.dirname(__FILE__)}/fixtures/file_types" +require_relative '../../spec_helper' +require_relative 'fixtures/file_types' describe "File.ftype" do before :all do -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/