8000 We shouldn't load bundled gems from `.bundle` directory. · hsbt/ruby@6de5716 · GitHub
[go: up one dir, main page]

Skip to content

Commit 6de5716

Browse files
committed
We shouldn't load bundled gems from .bundle directory.
`.bundle` directory is for rspec examples and `test-bundled-gems`. ruby#6130 is focus to build bundled gems, not testing. It's accidentally side effect. Also see ruby@5bf75c2
1 parent c57880e commit 6de5716

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

spec/default.mspec

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@ if (opt = ENV["RUBYOPT"]) and (opt = opt.dup).sub!(/(?:\A|\s)-w(?=\z|\s)/, '')
44
ENV["RUBYOPT"] = opt
55
end
66

7+
# Disable to run for bundled gems
8+
ENV["GEM_SKIP"] = ENV["GEM_HOME"] = ENV["GEM_PATH"] = "".freeze
9+
710
# Enable constant leak checks by ruby/mspec
811
ENV["CHECK_CONSTANT_LEAKS"] ||= "true"
912

0 commit comments

Comments
 (0)
0