class Flypbook::PhotoStore

Attributes

screenshots[R]

Public Class Methods

take_screenshot(identifier) click to toggle source
# File lib/flypbook/photo_store.rb, line 7
def take_screenshot(identifier)
  filename = "#{identifier}-#{@screenshots.length + 1}.png"
  Capybara.current_session.save_screenshot filename
  @screenshots << filename
end