opal/opal/rspec/formatter/html_printer.rb in opal-rspec-0.5.0 vs opal/opal/rspec/formatter/html_printer.rb in opal-rspec-0.6.0.beta1
- old
+ new
@@ -63,10 +63,10 @@
def print_example_failed(pending_fixed, description, run_time, failure_id, exception, extra_content, escape_backtrace=false)
super
flush_output
example_we_just_wrote = current_node.get_child_by_tag_name('dd', index=-1)
- dump_message = lambda do
+ dump_message = lambda do |*|
puts "Exception for example '#{description}'\n#{exception[:backtrace]}"
false
end
button = Element.from_string('<form><button type="button">Console</button></form>')
button.on_click = dump_message