class Probatio::Context
def assert_match(*as)
def assert_match(*as) strings, others = as.partition { |a| a.is_a?(String) } rex = others.find { |o| o.is_a?(Regexp) } || strings.pop do_assert(strings, 'matched') { |s| s.match?(rex) } end
def assert_match(*as) strings, others = as.partition { |a| a.is_a?(String) } rex = others.find { |o| o.is_a?(Regexp) } || strings.pop do_assert(strings, 'matched') { |s| s.match?(rex) } end