class Guard::RSpec::Inspectors::FocusedInspector
until they all pass
Returns only that set of paths on all future calls to #paths
Inspector that focuses on set of paths if any of them is failing.
def failed(locations)
def failed(locations) if locations.empty? @focused_locations = [] elsif focused_locations.empty? @focused_locations = locations end end
def initialize(options = {})
def initialize(options = {}) super @focused_locations = [] end
def paths(paths)
def paths(paths) if focused_locations.any? focused_locations else _clean(paths) end end
def reload
def reload @focused_locations = [] end