Class: Module

Inherits:
Object
  • Object
show all
Defined in:
lib/minitest/shouldify.rb

Overview

Add hook to infect_an_assertion

Instance Method Summary collapse

Instance Method Details

#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

#infect_an_assertion_shouldifiedObject

:nodoc:



105
# File 'lib/minitest/shouldify.rb', line 105

alias :infect_an_assertion_shouldified :infect_an_assertion