module OpenFoodNetwork
  module HtmlHelper
    def save_and_open(html)
      require "launchy"
      file = Tempfile.new('html')
      file.write html
      Launchy.open(file.path)
    end
  end
end

module OpenFoodNetwork
  module HtmlHelper
    def html_save_and_open(html)
      require "launchy"
      file = Tempfile.new('html')
      file.write html
      Launchy.open(file.path)
    end
  end
end

Rename spec support method for faster tab completion on save_and_open_page
Rename spec support method for faster tab completion on save_and_open_page
