module XSpec::Evaluator::Top

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

Public Instance Methods

call(unit_of_work) click to toggle source
Calls superclass method
# File lib/xspec/evaluators.rb, line 34
def call(unit_of_work)
  super
rescue EvaluateFailed => e
  [Failure.new(unit_of_work, e.message, e.backtrace)]
rescue => e
  [CodeException.new(unit_of_work, e.message, e.backtrace)]
end