diff options
Diffstat (limited to 'qa/spec/specs/helpers/quarantine_spec.rb')
-rw-r--r-- | qa/spec/specs/helpers/quarantine_spec.rb | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/qa/spec/specs/helpers/quarantine_spec.rb b/qa/spec/specs/helpers/quarantine_spec.rb index 8ea375cdb05..0f2d592d771 100644 --- a/qa/spec/specs/helpers/quarantine_spec.rb +++ b/qa/spec/specs/helpers/quarantine_spec.rb @@ -104,6 +104,20 @@ RSpec.describe QA::Specs::Helpers::Quarantine do end describe '.skip_or_run_quarantined_tests_or_contexts' do + context 'with explicitly disabled quarantine' do + before do + stub_env('DISABLE_QUARANTINE', 'true') + end + + it 'runs quarantined test' do + group = describe_successfully do + it('is pending', :quarantine) {} + end + + expect(group.examples.first.execution_result.status).to eq(:passed) + end + end + context 'with no tag focused' do it 'skips quarantined tests' do group = describe_successfully do |