Module: XSpec::AssertionContext::Top

Defined in:
lib/xspec/assertion_contexts.rb

Overview

The top should be included as the final module in a context stack. It is a catch all to make sure all standard exceptions have been handled and do not leak outside the stack.

Instance Method Summary collapse

Instance Method Details

#call(unit_of_work) ⇒ Object



34
35
36
37
38
# File 'lib/xspec/assertion_contexts.rb', line 34

def call(unit_of_work)
  super
rescue => e
  [CodeException.new(unit_of_work, e.message, e.backtrace)]
end