module ActionDispatch::TestHelpers::PageDumpHelper

def open_file(path)

def open_file(path)
  require "launchy"
  Launchy.open(path)
rescue LoadError
  warn "File saved to #{path}.\nPlease install the launchy gem to open the file automatically."
end