class Cucumber::Core::Test::AroundHook
def describe_to(visitor, *args, &continue)
def describe_to(visitor, *args, &continue) visitor.around_hook(self, *args, &continue) end
def execute(*_args, &continue)
def execute(*_args, &continue) @timer.start @block.call(continue) Result::Unknown.new # Around hook does not know the result of the inner test steps rescue Result::Raisable => e e.with_duration(@timer.duration) rescue Exception => e failed(e) end
def failed(exception)
def failed(exception) Result::Failed.new(@timer.duration, exception) end
def hook?
def hook? true end
def initialize(&block)
def initialize(&block) @block = block @timer = Timer.new end