Module: Spec::Matchers

Defined in:
lib/mack/testing/rspec.rb

Overview

Example

Instance Method Summary collapse

Instance Method Details

#match(regexp) ⇒ Object

:nodoc:



22
23
24
25
# File 'lib/mack/testing/rspec.rb', line 22

def match(regexp)
  regexp = /#{regexp}/ if regexp.is_a?(String)
  Matchers::Match.new(regexp)
end