canvas-lms/gems/html_text_helper/spec
Landon Gilbert-Bland 16d5138e0a Fix text html parsing in gmail
Fixes COMMS-1061

Test Plan:
  * Create a new wiki page in one of your courses. In this wiki page,
    insert any image, select the image, and add a hyperlink to the
    image. Then save and publish the wiki page.
  * Open up the rails console and run the follow commands:

      include HtmlTextHelper
      w = WikiPage.find <id_of_newly_created_wiki_page>
      puts html_to_text(w.body)

  * Copy the text that was printed out there, and email it to a gmail
    address (such as your instructure address)
  * Wait for it to be delivered, and open the email in the gmail web
    client. Verify that you can click on the image link and the ahref
    link, and they both work and take you to where you expect to go

Change-Id: I5495f76c7f93f93b35c48ecfacffa9ab005017bb
Reviewed-on: https://gerrit.instructure.com/148306
Tested-by: Jenkins
Reviewed-by: Aaron Kc Hsu <ahsu@instructure.com>
Reviewed-by: Venk Natarajan <vnatarajan@instructure.com>
QA-Review: Steven Burnett <sburnett@instructure.com>
Product-Review: Steven Burnett <sburnett@instructure.com>
2018-04-26 21:54:15 +00:00
..
html_text_helper_spec.rb Fix text html parsing in gmail 2018-04-26 21:54:15 +00:00
spec_helper.rb da licença part 53 2017-05-01 21:06:11 +00:00