class CapybaraHtmlFormatter

Public Class Methods

new(output) click to toggle source
Calls superclass method
# File lib/sim/html_formatter.rb, line 10
def initialize(output)
  super
  # raise "output has to be a file path!" unless output.is_a?(String)
  @output_dir = File.dirname(@output)
end

Public Instance Methods

example_failed(example) click to toggle source
# File lib/sim/html_formatter.rb, line 23
def example_failed(example)
  example_failed_helper(example, @output)
  
  @printer.flush
  @output.flush
end
example_group_finished(example_group) click to toggle source
Calls superclass method
# File lib/sim/html_formatter.rb, line 34
def example_group_finished(example_group)
  super(example_group)
end
example_group_started(example_group) click to toggle source
Calls superclass method
# File lib/sim/html_formatter.rb, line 30
def example_group_started(example_group)
  super(example_group)
end
example_passed(example) click to toggle source
# File lib/sim/html_formatter.rb, line 16
def example_passed(example)
  example_passed_helper(example, @output)

  @printer.flush
  @output.flush
end
example_pending(example) click to toggle source
Calls superclass method
# File lib/sim/html_formatter.rb, line 48
def example_pending(example)
  super(example)
end
example_started(example) click to toggle source
Calls superclass method
# File lib/sim/html_formatter.rb, line 38
def example_started(example)
  super(example)
end
extra_failure_content(failure) click to toggle source
Calls superclass method
# File lib/sim/html_formatter.rb, line 52
def extra_failure_content(failure)
  content = []
  content << "<span>"
  content << ""
  content << "</span>"
  super + content.join($/)
end
print_screenshot(example) click to toggle source