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:
authorRémy Coutable <remy@rymai.me>2019-01-14 21:06:32 +0300
committerRémy Coutable <remy@rymai.me>2019-01-15 16:43:02 +0300
commit642bd8ce296f769316c034330ab8d53f97cd1bfc (patch)
tree1714baaaf428515c2e1df7c596db7fd289605b54 /spec/spec_helper.rb
parentf821a53b45d4b521ffb734b3b843f48e0d1ecfcd (diff)
Allow to quarantine tests
Signed-off-by: Rémy Coutable <remy@rymai.me>
Diffstat (limited to 'spec/spec_helper.rb')
-rw-r--r--spec/spec_helper.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb
index ca977effcb6..dfdb23492bf 100644
--- a/spec/spec_helper.rb
+++ b/spec/spec_helper.rb
@@ -132,6 +132,11 @@ RSpec.configure do |config|
Gitlab::ReleaseBlogPost.instance.instance_variable_set(:@url, 'https://about.gitlab.com')
end
+ config.before(:example, :quarantine) do
+ # Skip tests in quarantine unless we explicitly focus on them.
+ skip('In quarantine') unless config.inclusion_filter[:quarantine]
+ end
+
config.before(:example, :request_store) do
RequestStore.begin!
end