diff options
author | Drew Blessing <drew@gitlab.com> | 2016-08-03 07:46:43 +0300 |
---|---|---|
committer | Drew Blessing <drew@gitlab.com> | 2016-11-01 22:52:59 +0300 |
commit | af5322e90b47e830e7713482854ddf6450a0d8c1 (patch) | |
tree | aa15e96de4e970a83323da613b4b50eef367e703 /spec/support/rake_helpers.rb | |
parent | f73f09b1e079e2c1e1793878437f00731af5e177 (diff) |
Add Rake task to create/repair GitLab Shell hooks symlinks
Diffstat (limited to 'spec/support/rake_helpers.rb')
-rw-r--r-- | spec/support/rake_helpers.rb | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/spec/support/rake_helpers.rb b/spec/support/rake_helpers.rb new file mode 100644 index 00000000000..52d80c69835 --- /dev/null +++ b/spec/support/rake_helpers.rb @@ -0,0 +1,10 @@ +module RakeHelpers + def run_rake_task(task_name) + Rake::Task[task_name].reenable + Rake.application.invoke_task task_name + end + + def stub_warn_user_is_not_gitlab + allow_any_instance_of(Object).to receive(:warn_user_is_not_gitlab) + end +end |