class RSpec::Core::InclusionRules
@private
def add(*args)
def add(*args) apply_standalone_filter(*args) || super end
def add_location(locations)
def add_location(locations) replace_filters(:locations => locations) end
def add_with_low_priority(*args)
def add_with_low_priority(*args) apply_standalone_filter(*args) || super end
def apply_standalone_filter(updated)
def apply_standalone_filter(updated) return true if standalone? return nil unless is_standalone_filter?(updated) replace_filters(updated) true end
def include_example?(example)
def include_example?(example) @rules.empty? ? true : example.any_apply?(@rules) end
def is_standalone_filter?(rules)
def is_standalone_filter?(rules) STANDALONE_FILTERS.any? { |key| rules.key?(key) } end
def replace_filters(new_rules)
def replace_filters(new_rules) @rules.replace(new_rules) opposite.clear end
def standalone?
def standalone? is_standalone_filter?(@rules) end
def use(*args)
def use(*args) apply_standalone_filter(*args) || super end