summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Rodríguez <deivid.rodriguez@riseup.net>2019-11-28 12:31:33 +0100
committerDavid Rodríguez <deivid.rodriguez@riseup.net>2019-11-28 15:37:24 +0100
commitbbd5dcae75e750c6be342c4a7746f1b26e654484 (patch)
tree7fa24f0c13008c28ad3a17e783444826b9fe3fa1
parentd75ee1844fa1f122bd0aed6b06191280f02052a8 (diff)
downloadbundler-bbd5dcae75e750c6be342c4a7746f1b26e654484.tar.gz
`Gem::Specification` should always be an `Enumerable`
-rw-r--r--spec/runtime/setup_spec.rb4
1 files changed, 1 insertions, 3 deletions
diff --git a/spec/runtime/setup_spec.rb b/spec/runtime/setup_spec.rb
index dd6e35d141..5822b66c92 100644
--- a/spec/runtime/setup_spec.rb
+++ b/spec/runtime/setup_spec.rb
@@ -1265,9 +1265,7 @@ end
let(:default_gems) do
ruby!(<<-RUBY).split("\n")
- if Gem::Specification.is_a?(Enumerable)
- puts Gem::Specification.select(&:default_gem?).map(&:name)
- end
+ puts Gem::Specification.select(&:default_gem?).map(&:name)
RUBY
end