class Guard::RSpecFormatter
def spec_path?(path)
def spec_path?(path) pattern = ::RSpec.configuration.pattern flags = supported_fnmatch_flags(pattern) path ||= "" path = path.sub(/:\d+\z/, "") path = Pathname.new(path).cleanpath.to_s stripped = "{#{pattern.gsub(/\s*,\s*/, ',')}}" File.fnmatch(stripped, path, flags) end