summaryrefslogtreecommitdiff
path: root/spec/runtime/setup_spec.rb
diff options
context:
space:
mode:
authorBundlerbot <bot@bundler.io>2019-12-19 22:50:30 +0000
committerBundlerbot <bot@bundler.io>2019-12-19 22:50:30 +0000
commit4da3289ebdf87b0f5f20186a35309e989cf19e4c (patch)
treed35ff704c2efef372ee3d66e184e7d9ff39a47cc /spec/runtime/setup_spec.rb
parent8bd21aa0f5dc92fce4df277715f4eab546d30a7f (diff)
parent010e79b72d7d38a869cc3f4a7f30216f2486ac17 (diff)
downloadbundler-4da3289ebdf87b0f5f20186a35309e989cf19e4c.tar.gz
Merge #7508v2.1.2
7508: Release 2.1.2 r=deivid-rodriguez a=deivid-rodriguez ### What was the end-user problem that led to this PR? The problem was that I want to ship [a small regression fix](https://github.com/bundler/bundler/pull/7505), and also so tweaks to the development environment (#7506) that I want to use in the rubygems side to fix the CI errors in https://github.com/rubygems/rubygems/pull/3043. ### What is your fix for the problem, implemented in this PR? My fix is to release 2.1.2 Co-authored-by: Bundlerbot <bot@bundler.io> Co-authored-by: David Rodríguez <deivid.rodriguez@riseup.net>
Diffstat (limited to 'spec/runtime/setup_spec.rb')
-rw-r--r--spec/runtime/setup_spec.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/spec/runtime/setup_spec.rb b/spec/runtime/setup_spec.rb
index befc5f9d09..39240b7404 100644
--- a/spec/runtime/setup_spec.rb
+++ b/spec/runtime/setup_spec.rb
@@ -1344,5 +1344,11 @@ end
expect(last_command.stdboth).not_to include "FAIL"
expect(err).to include "private method `require'"
end
+
+ it "takes care of requiring rubygems" do
+ sys_exec("#{Gem.ruby} -I#{lib_dir} -e \"puts require('bundler/setup')\"", "RUBYOPT" => "--disable=gems")
+
+ expect(last_command.stdboth).to eq("true")
+ end
end
end