1 2 3 4 5 6 7
require 'mspec/runner/filters/match' class RegexpFilter < MatchFilter def to_regexp(*strings) strings.map { |str| Regexp.new str } end end