aboutsummaryrefslogtreecommitdiffstats
path: root/spec/runtime/setup_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/runtime/setup_spec.rb')
-rw-r--r--spec/runtime/setup_spec.rb15
1 files changed, 13 insertions, 2 deletions
diff --git a/spec/runtime/setup_spec.rb b/spec/runtime/setup_spec.rb
index 09e88630..cca63261 100644
--- a/spec/runtime/setup_spec.rb
+++ b/spec/runtime/setup_spec.rb
@@ -1080,8 +1080,8 @@ RSpec.describe "Bundler.setup" do
end
end
- describe "when Psych is not in the Gemfile", :ruby => "~> 2.2" do
- it "does not load Psych" do
+ describe "with gemified standard libraries" do
+ it "does not load Psych", :ruby => "~> 2.2" do
gemfile ""
ruby <<-RUBY
require 'bundler/setup'
@@ -1093,6 +1093,17 @@ RSpec.describe "Bundler.setup" do
expect(pre_bundler).to eq("undefined")
expect(post_bundler).to match(/\d+\.\d+\.\d+/)
end
+
+ it "does not load openssl" do
+ install_gemfile! ""
+ ruby! <<-RUBY
+ require "bundler/setup"
+ puts defined?(OpenSSL) ? "FAIL" : "WIN"
+ require "openssl"
+ puts defined?(OpenSSL) ? "WIN" : "FAIL"
+ RUBY
+ expect(out).to eq("WIN\nWIN")
+ end
end
describe "after setup" do