ruby/spec/bundler/support/env.rb
David Rodríguez 9e566141cd [rubygems/rubygems] Remove "double CI" for testing Bundler 4 mode
Since now every functionality that changes in Bundler 4 is under a
setting, we can enable that setting to test the new functionality,
without having to run our full CI twice.

This can actually be seen as increasing coverage, because Bundler 4
functionality will now be tested on Windows, MacOS, or any other
environment where previously "Bundler 4 mode" was not running.

1cb3e009fc
2025-06-30 12:56:50 +09:00

13 lines
257 B
Ruby

# frozen_string_literal: true
module Spec
module Env
def ruby_core?
File.exist?(File.expand_path("../../../lib/bundler/bundler.gemspec", __dir__))
end
def rubylib
ENV["RUBYLIB"].to_s.split(File::PATH_SEPARATOR)
end
end
end