ruby-changes:57125
From: Hiroshi <ko1@a...>
Date: Sat, 17 Aug 2019 15:22:23 +0900 (JST)
Subject: [ruby-changes:57125] Hiroshi SHIBATA: 273f1f4498 (master): Move fixture path to last path
https://git.ruby-lang.org/ruby.git/commit/?id=273f1f4498 From 273f1f44982475f8c93805c9b9ec604846f3a5de Mon Sep 17 00:00:00 2001 From: Hiroshi SHIBATA <hsbt@r...> Date: Sat, 17 Aug 2019 10:11:05 +0900 Subject: Move fixture path to last path diff --git a/spec/ruby/core/kernel/shared/require.rb b/spec/ruby/core/kernel/shared/require.rb index af0d50d..cfa1a4b 100644 --- a/spec/ruby/core/kernel/shared/require.rb +++ b/spec/ruby/core/kernel/shared/require.rb @@ -163,7 +163,7 @@ describe :kernel_require_basic, shared: true do https://github.com/ruby/ruby/blob/trunk/spec/ruby/core/kernel/shared/require.rb#L163 it "does not require file twice after $LOAD_PATH change" do $LOAD_PATH << CODE_LOADING_DIR @object.require("load_fixture.rb").should be_true - $LOAD_PATH.unshift CODE_LOADING_DIR + "/gem" + $LOAD_PATH.push CODE_LOADING_DIR + "/gem" @object.require("load_fixture.rb").should be_false ScratchPad.recorded.should == [:loaded] end -- cgit v0.10.2 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/