diff options
author | Kamil Trzciński <ayufan@ayufan.eu> | 2019-05-22 11:45:46 +0000 |
---|---|---|
committer | Kamil Trzciński <ayufan@ayufan.eu> | 2019-05-22 11:45:46 +0000 |
commit | 4f20c9de6f8e09131d751174243214d9bd3b6419 (patch) | |
tree | b41332bd3773178776ff92738de8cff3f84fc689 /spec/spec_helper.rb | |
parent | c4d930e5f54e7da07c80cc028dfc0f5c08719146 (diff) | |
download | gitlab-ce-4f20c9de6f8e09131d751174243214d9bd3b6419.tar.gz |
Revert "Merge branch 'reorganize-tests-jobs-by-level' into 'master'"revert-04c3c6dd
This reverts merge request !27514
Diffstat (limited to 'spec/spec_helper.rb')
-rw-r--r-- | spec/spec_helper.rb | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index 390a869d93f..69589c9aa33 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -44,8 +44,6 @@ Dir[Rails.root.join("spec/support/shared_contexts/*.rb")].each { |f| require f } Dir[Rails.root.join("spec/support/shared_examples/*.rb")].each { |f| require f } Dir[Rails.root.join("spec/support/**/*.rb")].each { |f| require f } -quality_level = Quality::TestLevel.new - RSpec.configure do |config| config.use_transactional_fixtures = false config.use_instantiated_fixtures = false @@ -57,10 +55,9 @@ RSpec.configure do |config| config.infer_spec_type_from_file_location! config.full_backtrace = !!ENV['CI'] - config.define_derived_metadata(file_path: %r{(ee)?/spec/.+_spec\.rb\z}) do |metadata| + config.define_derived_metadata(file_path: %r{/spec/}) do |metadata| location = metadata[:location] - metadata[:level] = quality_level.level_for(location) metadata[:api] = true if location =~ %r{/spec/requests/api/} # do not overwrite type if it's already set |