diff options
Diffstat (limited to 'spec/bundler/support/path.rb')
-rw-r--r-- | spec/bundler/support/path.rb | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/spec/bundler/support/path.rb b/spec/bundler/support/path.rb index a7272bc019..a73b3e699e 100644 --- a/spec/bundler/support/path.rb +++ b/spec/bundler/support/path.rb @@ -37,6 +37,10 @@ module Spec @rubocop_gemfile ||= source_root.join(rubocop_gemfile_basename) end + def standard_gemfile + @standard_gemfile ||= source_root.join(standard_gemfile_basename) + end + def dev_gemfile @dev_gemfile ||= git_root.join("dev_gems.rb") end @@ -150,6 +154,10 @@ module Spec tmp.join("gems/rubocop") end + def standard_gems + tmp.join("gems/standard") + end + def file_uri_for(path) protocol = "file://" root = Gem.win_platform? ? "/" : "" @@ -285,6 +293,17 @@ module Spec source_root.join("tool/bundler/#{filename}.rb") end + def standard_gemfile_basename + filename = if RUBY_VERSION.start_with?("2.3") + "standard23_gems" + elsif RUBY_VERSION.start_with?("2.4") + "standard24_gems" + else + "standard_gems" + end + source_root.join("tool/bundler/#{filename}.rb") + end + extend self end end |