Class: RLab::Assert::MinitestIntegration::Observer

Inherits:
Object
  • Object
show all
Defined in:
lib/rlab/assert/minitest_integration.rb

Instance Method Summary collapse

Instance Method Details

#update(assertion) ⇒ Object

Raises:

  • (Minitest::Assertion)


25
26
27
28
29
# File 'lib/rlab/assert/minitest_integration.rb', line 25

def update assertion
  return unless assertion.failed?
  error = assertion.to_error
  raise Minitest::Assertion, error.message
end