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:
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