Method: Lazyman::LazymanFormatter#example_failed
- Defined in:
- lib/magicspec/generators/magicspec/app/spec/support/formatters/magicspec_formatter.rb
#example_failed(example) ⇒ Object
15 16 17 18 19 20 21 22 23 24 |
# File 'lib/magicspec/generators/magicspec/app/spec/support/formatters/magicspec_formatter.rb', line 15 def example_failed(example) super(example) if $navi failed_url = $navi.url rescue $navi.current_url @printer.puts "<a target=\"_blank\" href=\"#{failed_url}\">failed url is [#{failed_url}]</a>" @printer.puts '<br />' @printer.puts '<p>Extra problem text</p>' @printer.flush end #if end |