qa/qa/specs/helpers/quarantine.rb
# Checks if a test or context should be skipped.
#
# Returns true if
# - the metadata does not includes the :quarantine tag
# or if
# - the metadata includes the :quarantine tag
# - and the filter includes other tags that aren't in the metadata
Checks if a test or context should be skipped.
Returns true if
the metadata does not includes the :quarantine tag
or if
the metadata includes the :quarantine tag
and the filter includes other tags that aren't in the metadata
Checks if a test or context should be skipped . Returns true if the metadata does not includes the : quarantine tag or if the metadata includes the : quarantine tag and the filter includes other tags that aren ' t in the metadata
def should_skip_when_focused?(metadata, included_filters)
          return true unless metadata.key?(:quarantine)
          return false if included_filters.empty?
          (metadata.keys & included_filters.keys).empty?
        end
def should_skip_when_focused? ( metadata , included_filters ) return true unless metadata . key? ( :quarantine ) return false if included_filters . empty? ( metadata . keys & included_filters . keys ) . empty? end
Checks if a test or context should be skipped.
Checks if a test or context should be skipped .
metadata
<not_specific>
included_filters
<not_specific>