rubymem / bundler-leak

Known-leaky gems verification for bundler: `bundle leak` to check your app and find leaky gems in your Gemfile :gem::droplet:
https://www.rubymem.com
GNU General Public License v3.0
289 stars 11 forks source link

Fix update! database when :quiet option is true #27

Closed chubchenko closed 4 years ago

chubchenko commented 4 years ago

Example of the problem:

2) Bundler::Plumber::Database update! when the :quiet option is true should create the repo, then update it given multiple successive calls.
     Failure/Error: system *command

       #<Bundler::Plumber::Database (class)> received :system with unexpected arguments
         expected: ("git fetch --all; git reset --hard origin/master --quiet")
              got: ("git fetch --all; git reset --hard origin/master--quiet")
     # ./spec/database_spec.rb:63:in `block (4 levels) in <top (required)>'