diff --git a/spec/bundler/support/path.rb b/spec/bundler/support/path.rb index 8d1807b56ca824..240cfe7bc97f8c 100644 --- a/spec/bundler/support/path.rb +++ b/spec/bundler/support/path.rb @@ -292,11 +292,11 @@ def ruby_core_tarball? end def rubocop_gemfile_basename - tool_dir.join("rubocop_gems.rb") + tool_dir.join(RUBY_VERSION.start_with?("2.6") ? "rubocop26_gems.rb" : "rubocop_gems.rb") end def standard_gemfile_basename - tool_dir.join("standard_gems.rb") + tool_dir.join(RUBY_VERSION.start_with?("2.6") ? "standard26_gems.rb" : "standard_gems.rb") end def tool_dir