summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGabriel Mazetto <brodock@gmail.com>2018-05-10 05:53:21 +0200
committerGabriel Mazetto <brodock@gmail.com>2018-05-10 13:53:11 +0200
commit7fd0f5fc9d52e749a9692e7e6b42308b20e247f3 (patch)
tree68b4c445ccac34b3c5f2d946264363092be5cbe9
parent3016cf26970353626db8437fb77a3ac22f83288c (diff)
downloadgitlab-ce-7fd0f5fc9d52e749a9692e7e6b42308b20e247f3.tar.gz
Adding progressbar explicitly and spec extensions for itce-5928-geo-rake-task-to-force-housekeeping-on-next-sync
-rw-r--r--Gemfile3
-rw-r--r--Gemfile.lock1
-rw-r--r--spec/support/helpers/rake_helpers.rb4
3 files changed, 8 insertions, 0 deletions
diff --git a/Gemfile b/Gemfile
index 2df14c032ed..12bff1ee867 100644
--- a/Gemfile
+++ b/Gemfile
@@ -174,6 +174,9 @@ gem 'httparty', '~> 0.13.3'
# Colored output to console
gem 'rainbow', '~> 2.2'
+# Progress bar
+gem 'ruby-progressbar'
+
# GitLab settings
gem 'settingslogic', '~> 2.0.9'
diff --git a/Gemfile.lock b/Gemfile.lock
index ee28465decd..854a24ab0b4 100644
--- a/Gemfile.lock
+++ b/Gemfile.lock
@@ -1165,6 +1165,7 @@ DEPENDENCIES
rubocop-rspec (~> 1.22.1)
ruby-fogbugz (~> 0.2.1)
ruby-prof (~> 0.17.0)
+ ruby-progressbar
ruby_parser (~> 3.8)
rufus-scheduler (~> 3.4)
rugged (~> 0.27)
diff --git a/spec/support/helpers/rake_helpers.rb b/spec/support/helpers/rake_helpers.rb
index 86bfeed107c..acd9cce6a67 100644
--- a/spec/support/helpers/rake_helpers.rb
+++ b/spec/support/helpers/rake_helpers.rb
@@ -13,6 +13,10 @@ module RakeHelpers
allow(main_object).to receive(:print)
end
+ def silence_progress_bar
+ allow_any_instance_of(ProgressBar::Output).to receive(:stream).and_return(double().as_null_object)
+ end
+
def main_object
@main_object ||= TOPLEVEL_BINDING.eval('self')
end