Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDrew Blessing <drew@gitlab.com>2016-08-03 07:46:43 +0300
committerDrew Blessing <drew@gitlab.com>2016-11-01 22:52:59 +0300
commitaf5322e90b47e830e7713482854ddf6450a0d8c1 (patch)
treeaa15e96de4e970a83323da613b4b50eef367e703 /spec/support/rake_helpers.rb
parentf73f09b1e079e2c1e1793878437f00731af5e177 (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.rb10
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