Testing Phoenix Views
Because functions like link and content_tag don’t return strings, but return tuples of :safe and an IO list I was confused about how to write tests for my code that uses them. I describe how I learned how to test view code using those functions in Testing Phoenix Views.
