summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authorDavid Rodríguez <deivid.rodriguez@riseup.net>2021-10-11 19:58:24 +0200
committergit <svn-admin@ruby-lang.org>2021-10-13 16:21:41 +0900
commitd6627ab85c7e29a45ee61af350a38c37ea2bd83b (patch)
treecc5230a383f3ac4bc3f53d2a7ad566cebec4e7ba /spec
parentad4e7308d2c269ee3bd88fbc3a153d76fc3e9910 (diff)
[rubygems/rubygems] Remove unnecessary code
All supported rubygems versions implement this. https://github.com/rubygems/rubygems/commit/2130782ef6
Diffstat (limited to 'spec')
-rw-r--r--spec/bundler/commands/binstubs_spec.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/bundler/commands/binstubs_spec.rb b/spec/bundler/commands/binstubs_spec.rb
index c8eef55266..1cd0e16d95 100644
--- a/spec/bundler/commands/binstubs_spec.rb
+++ b/spec/bundler/commands/binstubs_spec.rb
@@ -116,7 +116,7 @@ RSpec.describe "bundle binstubs <gem>" do
s.executables = "print_loaded_gems"
s.bindir = "exe"
s.write "exe/print_loaded_gems", <<-R
- specs = Gem.loaded_specs.values.reject {|s| Bundler.rubygems.spec_default_gem?(s) }
+ specs = Gem.loaded_specs.values.reject {|s| s.default_gem? }
puts specs.map(&:full_name).sort.inspect
R
end