Method: Module#infect_an_assertion

Defined in:
lib/minitest/shouldify.rb

#infect_an_assertion(meth, new_name, dont_flip = false) ⇒ Object

:nodoc:



106
107
108
109
110
111
# File 'lib/minitest/shouldify.rb', line 106

def infect_an_assertion meth, new_name, dont_flip = false # :nodoc:
  # Call the original method
  infect_an_assertion_shouldified meth, new_name, dont_flip
  # Register the class that has the expectation
  MiniTest::Shouldify.added_expectation! self
end