Class: Module
- Inherits:
-
Object
- Object
- Module
- Defined in:
- lib/minitest/shouldify.rb
Overview
Add hook to infect_an_assertion
Instance Method Summary collapse
-
#infect_an_assertion(meth, new_name, dont_flip = false) ⇒ Object
:nodoc:.
-
#infect_an_assertion_shouldified ⇒ Object
:nodoc:.
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_shouldified ⇒ Object
:nodoc:
105 |
# File 'lib/minitest/shouldify.rb', line 105 alias :infect_an_assertion_shouldified :infect_an_assertion |