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/rake_helper.rb
parentf73f09b1e079e2c1e1793878437f00731af5e177 (diff)
Add Rake task to create/repair GitLab Shell hooks symlinks
Diffstat (limited to 'spec/rake_helper.rb')
-rw-r--r--spec/rake_helper.rb19
1 files changed, 19 insertions, 0 deletions
diff --git a/spec/rake_helper.rb b/spec/rake_helper.rb
new file mode 100644
index 00000000000..9b5b4bf9fea
--- /dev/null
+++ b/spec/rake_helper.rb
@@ -0,0 +1,19 @@
+require 'spec_helper'
+require 'rake'
+
+RSpec.configure do |config|
+ config.include RakeHelpers
+
+ # Redirect stdout so specs don't have so much noise
+ config.before(:all) do
+ $stdout = StringIO.new
+
+ Rake.application.rake_require 'tasks/gitlab/task_helpers'
+ Rake::Task.define_task :environment
+ end
+
+ # Reset stdout
+ config.after(:all) do
+ $stdout = STDOUT
+ end
+end