Class: MiniTest::Unit::TestCase

Inherits:
Object
  • Object
show all
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

#d

Methods included from Wrong::CloseTo

#close_to?

Methods included from Wrong::Eventually

#eventually

Methods included from Wrong::Capturing

#capturing

Methods included from Wrong::Rescuing

#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_classObject



8
9
10
# File 'lib/wrong/adapters/minitest.rb', line 8

def failure_class
  MiniTest::Assertion
end