summaryrefslogtreecommitdiff
path: root/spec/support/rake_helpers.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/support/rake_helpers.rb')
-rw-r--r--spec/support/rake_helpers.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/spec/support/rake_helpers.rb b/spec/support/rake_helpers.rb
index 4a8158ed79b..5cb415111d2 100644
--- a/spec/support/rake_helpers.rb
+++ b/spec/support/rake_helpers.rb
@@ -7,4 +7,9 @@ module RakeHelpers
def stub_warn_user_is_not_gitlab
allow_any_instance_of(Object).to receive(:warn_user_is_not_gitlab)
end
+
+ def silence_output
+ allow($stdout).to receive(:puts)
+ allow($stdout).to receive(:print)
+ end
end