Module: MiniTest::Assertions
- Defined in:
- lib/minitest_diff.rb
Instance Method Summary collapse
-
#refute_different(exp, act, msg = nil) ⇒ Object
refute equality with a message containing the char differences.
Instance Method Details
#refute_different(exp, act, msg = nil) ⇒ Object
refute equality with a message containing the char differences
27 28 29 30 |
# File 'lib/minitest_diff.rb', line 27 def refute_different exp, act, msg = nil msg = (msg) { Differ.diff_by_char(exp, act) } refute exp != act, msg end |