method

open_file

rails latest stable - Class: ActionDispatch::TestHelpers::PageDumpHelper

Method not available on this version

This method is only available on newer versions. The first available version (v7.2.3) is shown here.

open_file(path)
private

No documentation available.

# File actionpack/lib/action_dispatch/testing/test_helpers/page_dump_helper.rb, line 23
        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