Again run quarantine specs if tag provided

In f59438c0a9 we changed how quarantined
specs are excluded. But that made it impossible to run them by
providing `--tag quarantine`, this changes that.
This commit is contained in:
Toon Claes 2019-08-02 11:54:40 +02:00
parent 1e7aafdc0b
commit 8f653f0983
1 changed files with 2 additions and 2 deletions

View File

@ -148,9 +148,9 @@ RSpec.configure do |config|
Gitlab::ThreadMemoryCache.cache_backend.clear
end
config.around(:example, :quarantine) do
config.around(:example, :quarantine) do |example|
# Skip tests in quarantine unless we explicitly focus on them.
skip('In quarantine') unless config.inclusion_filter[:quarantine]
example.run if config.inclusion_filter[:quarantine]
end
config.before(:example, :request_store) do