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

gitlab.com/gitlab-org/gitaly.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Cai <jcai@gitlab.com>2019-01-17 19:43:15 +0300
committerJohn Cai <jcai@gitlab.com>2019-01-17 19:43:15 +0300
commitcb94c2b97427357f30678ce7164bb51250546d93 (patch)
tree2db93837ba5427ebe4b8256563e1935de64d5155 /ruby/vendor/gitlab-shell/spec/spec_helper.rb
parentbe97ae4d2760e1065cbcd1fb66f37100b45699f0 (diff)
parent83a0c7b826280c7d9d09d0c5826a67c82cfd3016 (diff)
Merge branch 'vendor-gitlab-shell-20190111' into 'master'
Vendor gitlab-shell at 6c5b195353a632095d7f6 See merge request gitlab-org/gitaly!1037
Diffstat (limited to 'ruby/vendor/gitlab-shell/spec/spec_helper.rb')
-rw-r--r--ruby/vendor/gitlab-shell/spec/spec_helper.rb16
1 files changed, 16 insertions, 0 deletions
diff --git a/ruby/vendor/gitlab-shell/spec/spec_helper.rb b/ruby/vendor/gitlab-shell/spec/spec_helper.rb
new file mode 100644
index 000000000..dfdf44984
--- /dev/null
+++ b/ruby/vendor/gitlab-shell/spec/spec_helper.rb
@@ -0,0 +1,16 @@
+require 'rspec-parameterized'
+require 'simplecov'
+SimpleCov.start
+
+require 'gitlab_init'
+
+Dir[File.expand_path('support/**/*.rb', __dir__)].each { |f| require f }
+
+RSpec.configure do |config|
+ config.run_all_when_everything_filtered = true
+ config.filter_run :focus
+
+ config.before(:each) do
+ stub_const('ROOT_PATH', File.expand_path('..', __dir__))
+ end
+end