summaryrefslogtreecommitdiff
path: root/spec/spec_helper.rb
blob: 4a9c15eb72e44a0cd8eef10627883bb8950917c4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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