summaryrefslogtreecommitdiff
path: root/spec/bundler/support/env.rb
blob: 0899bd82a31096cdafc0c43a82401408294b32d1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
# 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