Class: Spec::Ui::SlaveScreenshotFormatter

Inherits:
ScreenshotFormatter
  • Object
show all
Defined in:
lib/spec/ui/formatter.rb

Overview

This formatter writes PNG and browser snapshot HTML to disk, just like its superclass, but it doesn’t write the HTML report itself. It is meant to be used from Spec::Distributed slaves

Instance Method Summary collapse

Methods inherited from ScreenshotFormatter

#absolute_html_path, #absolute_png_path, #ensure_dir, #ensure_dir!, #extra_failure_content, #global_scripts, #global_styles, #img_div, #relative_html_path, #relative_png_path, #save_html, #screenshot, #take_screenshot_of

Methods included from ScreenshotSaver

#save_screenshot

Constructor Details

#initialize(where) ⇒ SlaveScreenshotFormatter

Returns a new instance of SlaveScreenshotFormatter.



163
164
165
# File 'lib/spec/ui/formatter.rb', line 163

def initialize(where)
  super(where, StringIO.new)
end