title: Test rendering in Phoenix/Elixir
body: <p>I have a view module in my phoenix application that contains <code>render_footer/1</code>. How would I go about testing this function using <a href="http://elixir-lang.org/docs/stable/ex_unit/ExUnit.html" rel="nofollow">EXUnit</a>?</p>
  
  <pre><code>defmodule Lorem.LayoutView do
    use Lorem.Web, :view
  
    def render_footer(conn) do
      render __MODULE__, "footer.html", conn: conn
    end
  end
  
  defmodule Lorem.LayoutViewTest do
    use Lorem.ConnCase, async: true
  
    test "render_footer" do
      flunk "Not implemented!"
    end
  end
  </code></pre>