aboutsummaryrefslogtreecommitdiffstats
path: root/spec
diff options
context:
space:
mode:
authorHiroshi SHIBATA <hsbt@ruby-lang.org>2020-05-07 17:07:45 +0900
committerHiroshi SHIBATA <hsbt@ruby-lang.org>2020-05-13 07:54:37 +0900
commit5b634afe4cacbad1f04ef84e9929626820350912 (patch)
tree693838bcb2d447e68a2a7c50eca9f18bef5eb07e /spec
parenta7c1791cec213bf1183a9f397cc60718f9de656f (diff)
downloadruby-5b634afe4cacbad1f04ef84e9929626820350912.tar.gz
Added test_gems.rb for setup dependencies
Diffstat (limited to 'spec')
-rw-r--r--spec/bundler/support/rubygems_ext.rb5
1 files changed, 4 insertions, 1 deletions
diff --git a/spec/bundler/support/rubygems_ext.rb b/spec/bundler/support/rubygems_ext.rb
index 03c47ce57c..2aaf072715 100644
--- a/spec/bundler/support/rubygems_ext.rb
+++ b/spec/bundler/support/rubygems_ext.rb
@@ -109,7 +109,10 @@ module Spec
end
def test_gemfile
- Path.root.join("test_gems.rb")
+ gemfile = Path.root.join("test_gems.rb")
+ # for Ruby core repository
+ gemfile = Path.root.join("tool/bundler/test_gems.rb") unless File.exist?(gemfile)
+ gemfile
end
def test_lockfile