diff options
author | David RodrÃguez <deivid.rodriguez@riseup.net> | 2019-10-30 15:42:08 +0100 |
---|---|---|
committer | David RodrÃguez <deivid.rodriguez@riseup.net> | 2019-10-31 12:03:49 +0100 |
commit | b401c850c323f6cb2bb17efb6e6def2980356818 (patch) | |
tree | 64599037178d6bd627f27463d33971cebd8b3275 /spec/realworld | |
parent | 5ba1360de631e2fabf2bfa998b104c4355c58b13 (diff) | |
download | bundler-b401c850c323f6cb2bb17efb6e6def2980356818.tar.gz |
Don't silence the UI by default
Diffstat (limited to 'spec/realworld')
-rw-r--r-- | spec/realworld/edgecases_spec.rb | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/spec/realworld/edgecases_spec.rb b/spec/realworld/edgecases_spec.rb index 6468ee7f1e..26dd096b28 100644 --- a/spec/realworld/edgecases_spec.rb +++ b/spec/realworld/edgecases_spec.rb @@ -7,10 +7,12 @@ RSpec.describe "real world edgecases", :realworld => true, :sometimes => true do require "bundler" require "bundler/source/rubygems/remote" require "bundler/fetcher" - source = Bundler::Source::Rubygems::Remote.new(URI("https://rubygems.org")) - fetcher = Bundler::Fetcher.new(source) - index = fetcher.specs([#{name.dump}], nil) - rubygem = index.search(Gem::Dependency.new(#{name.dump}, #{requirement.dump})).last + rubygem = Bundler.ui.silence do + source = Bundler::Source::Rubygems::Remote.new(URI("https://rubygems.org")) + fetcher = Bundler::Fetcher.new(source) + index = fetcher.specs([#{name.dump}], nil) + index.search(Gem::Dependency.new(#{name.dump}, #{requirement.dump})).last + end if rubygem.nil? raise "Could not find #{name} (#{requirement}) on rubygems.org!\n" \ "Found specs:\n\#{index.send(:specs).inspect}" |