[前][次][番号順一覧][スレッド一覧]

ruby-changes:50840

From: nobu <ko1@a...>
Date: Sat, 31 Mar 2018 20:11:36 +0900 (JST)
Subject: [ruby-changes:50840] nobu:r63047 (trunk): use requrie_relative

nobu	2018-03-31 20:11:31 +0900 (Sat, 31 Mar 2018)

  New Revision: 63047

  https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=63047

  Log:
    use requrie_relative

  Modified files:
    trunk/spec/ruby/core/file/stat/ftype_spec.rb
    trunk/spec/ruby/core/method/shared/to_s.rb
Index: spec/ruby/core/method/shared/to_s.rb
===================================================================
--- spec/ruby/core/method/shared/to_s.rb	(revision 63046)
+++ spec/ruby/core/method/shared/to_s.rb	(revision 63047)
@@ -1,5 +1,5 @@ https://github.com/ruby/ruby/blob/trunk/spec/ruby/core/method/shared/to_s.rb#L1
-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
Index: spec/ruby/core/file/stat/ftype_spec.rb
===================================================================
--- spec/ruby/core/file/stat/ftype_spec.rb	(revision 63046)
+++ spec/ruby/core/file/stat/ftype_spec.rb	(revision 63047)
@@ -1,5 +1,5 @@ https://github.com/ruby/ruby/blob/trunk/spec/ruby/core/file/stat/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::Stat#ftype" do
   before :all do

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]