summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
Diffstat (limited to 'spec')
-rw-r--r--spec/bundler/runtime/setup_spec.rb17
1 files changed, 1 insertions, 16 deletions
diff --git a/spec/bundler/runtime/setup_spec.rb b/spec/bundler/runtime/setup_spec.rb
index e1aa75e9ca..74ada2f8b3 100644
--- a/spec/bundler/runtime/setup_spec.rb
+++ b/spec/bundler/runtime/setup_spec.rb
@@ -1524,22 +1524,7 @@ end
end
describe "after setup" do
- it "allows calling #gem on random objects" do
- install_gemfile <<-G
- source "https://gem.repo1"
- gem "myrack"
- G
-
- ruby <<-RUBY
- require "bundler/setup"
- Object.new.gem "myrack"
- puts Gem.loaded_specs["myrack"].full_name
- RUBY
-
- expect(out).to eq("myrack-1.0.0")
- end
-
- it "keeps Kernel#gem private", bundler: "4" do
+ it "keeps Kernel#gem private" do
install_gemfile <<-G
source "https://gem.repo1"
gem "myrack"