summaryrefslogtreecommitdiff
path: root/spec/bundler/support/env.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/bundler/support/env.rb')
-rw-r--r--spec/bundler/support/env.rb13
1 files changed, 13 insertions, 0 deletions
diff --git a/spec/bundler/support/env.rb b/spec/bundler/support/env.rb
new file mode 100644
index 0000000000..0899bd82a3
--- /dev/null
+++ b/spec/bundler/support/env.rb
@@ -0,0 +1,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