Method: Spec::Matchers#method_missing

Defined in:
lib/spec/matchers/method_missing.rb

#method_missing(sym, *args, &block) ⇒ Object

:nodoc:



3
4
5
6
7
# File 'lib/spec/matchers/method_missing.rb', line 3

def method_missing(sym, *args, &block) # :nodoc:
  return Matchers::Be.new(sym, *args) if sym.starts_with?("be_")
  return has(sym, *args) if sym.starts_with?("have_")
  super
end