lib/capybara/node/email.rb
# Save a snapshot of the page.
#
# @param  [String] path     The path to where it should be saved [optional]
#
Save a snapshot of the page.
Save a snapshot of the page .
def save_page(path = nil)
    path ||= "capybara-email-#{Time.new.strftime("%Y%m%d%H%M%S")}#{rand(10**10)}.html"
    path = File.expand_path(path, Capybara.save_path) if Capybara.save_path
    FileUtils.mkdir_p(File.dirname(path))
    File.open(path,'w') { |f| f.write(body) }
    path
  end
def save_page ( path = nil ) path ||= "capybara-email-#{Time.new.strftime("%Y%m%d%H%M%S")}#{rand(10**10)}.html" path = File . expand_path ( path , Capybara . save_path ) if Capybara . save_path FileUtils . mkdir_p ( File . dirname ( path ) ) File . open ( path , 'w' ) { | f | f . write ( body ) } path end
Save a snapshot of the page.
Save a snapshot of the page .
path
<not_specific>
<not_specific>
path The path to where it should be saved [optional]
path The path to where it should be saved [ optional ]