Class: MiniTest::Unit::TestCase

Inherits:
Object
  • Object
show all
Includes:
Wrong
Defined in:
lib/wrong/adapters/minitest.rb

Constant Summary

Constants included from Wrong

Wrong::VERSION

Instance Method Summary collapse

Methods included from Wrong

config, config=, load_config

Methods included from Wrong::Assert

#assert, #deny, #failure_message, #summary

Methods included from Wrong::Helpers

#capturing, #rescuing

Instance Method Details

#aver(valence, explanation = nil, depth = 0) ⇒ Object



10
11
12
13
# File 'lib/wrong/adapters/minitest.rb', line 10

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



6
7
8
# File 'lib/wrong/adapters/minitest.rb', line 6

def failure_class
  MiniTest::Assertion
end