Class: MiniTest::Unit::TestCase
- Includes:
- Wrong::Assert, Wrong::Helpers
- Defined in:
- lib/wrong/adapters/minitest.rb
Constant Summary
Constants included from Wrong::Eventually
Wrong::Eventually::NO_BLOCK_PASSED
Instance Method Summary collapse
Methods included from Wrong::D
Methods included from Wrong::CloseTo
Methods included from Wrong::Eventually
Methods included from Wrong::Capturing
Methods included from Wrong::Rescuing
Methods included from Wrong::Assert
#assert, #deny, #failure_message, #increment_assertion_count
Instance Method Details
#aver(valence, explanation = nil, depth = 0) ⇒ Object
12 13 14 15 |
# File 'lib/wrong/adapters/minitest.rb', line 12 def aver(valence, explanation = nil, depth = 0) self._assertions += 1 # increment minitest's assert count super(valence, explanation, depth + 1) # apparently this passes along the default block end |
#failure_class ⇒ Object
8 9 10 |
# File 'lib/wrong/adapters/minitest.rb', line 8 def failure_class MiniTest::Assertion end |