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:
Diffstat (limited to 'qa/qa/specs/helpers/context_selector.rb')
-rw-r--r--qa/qa/specs/helpers/context_selector.rb12
1 files changed, 0 insertions, 12 deletions
diff --git a/qa/qa/specs/helpers/context_selector.rb b/qa/qa/specs/helpers/context_selector.rb
index 40ecb9b3506..57665babf68 100644
--- a/qa/qa/specs/helpers/context_selector.rb
+++ b/qa/qa/specs/helpers/context_selector.rb
@@ -8,18 +8,6 @@ module QA
module ContextSelector
extend self
- def configure_rspec
- ::RSpec.configure do |config|
- config.before do |example|
- if example.metadata.key?(:only)
- skip('Test is not compatible with this environment or pipeline') unless ContextSelector.context_matches?(example.metadata[:only])
- elsif example.metadata.key?(:except)
- skip('Test is excluded in this job') if ContextSelector.except?(example.metadata[:except])
- end
- end
- end
- end
-
def except?(*options)
return false if Runtime::Env.ci_job_name.blank? && options.any? { |o| o.is_a?(Hash) && o[:job].present? }
return false if Runtime::Env.ci_project_name.blank? && options.any? { |o| o.is_a?(Hash) && o[:pipeline].present? }