Sha256: 417eb72adfb1890cc1ccb22bd71b18169259b56c7de775f58942ae8d6b0a57fb
Contents?: true
Size: 916 Bytes
Versions: 6
Compression:
Stored size: 916 Bytes
Contents
require 'turnip_formatter/printer' require 'turnip_formatter/printer/step_extra_args' module TurnipFormatter module Printer class RuntimeError class << self include TurnipFormatter::Printer def print_out(example, exception) render_template(:runtime_exception, { example: example, runtime_exception: runtime_exception(exception), example_exception: example_exception(example), } ) end private def runtime_exception(exception) render_template(:exception, { title: 'Runtime', exception: exception }) end def example_exception(example) return '' unless example.exception render_template(:exception, { title: 'Example', exception: example.exception } ) end end end end end
Version data entries
6 entries across 6 versions & 1 rubygems