Module: Spec::Ui::ScreenshotSaver
- Included in:
- ScreenshotFormatter
- Defined in:
- lib/spec/ui/screenshot_saver.rb
Instance Method Summary collapse
Instance Method Details
#save_screenshot(png_path) ⇒ Object
7 8 9 10 |
# File 'lib/spec/ui/screenshot_saver.rb', line 7 def save_screenshot(png_path) # How do we capture the current window?? `screencapture #{png_path}` end |