diff --git a/spec/bundler/support/path.rb b/spec/bundler/support/path.rb index 5c156c47cf..8d1807b56c 100644 --- a/spec/bundler/support/path.rb +++ b/spec/bundler/support/path.rb @@ -292,15 +292,15 @@ module Spec end def rubocop_gemfile_basename - source_root.join("tool/bundler/rubocop_gems.rb") + tool_dir.join("rubocop_gems.rb") end def standard_gemfile_basename - source_root.join("tool/bundler/standard_gems.rb") + tool_dir.join("standard_gems.rb") end def tool_dir - source_root.join("tool/bundler") + ruby_core? ? source_root.join("tool/bundler") : source_root.join("../tool/bundler") end def templates_dir