     use Phoenix.Router
     get "users/:id", UsersController, :show
     get "users/top", UsersController, :top, as: :top
+    get "route_that_crashes", UsersController, :crash
 
     resources "comments", CommentsController
     get "users/:user_id/comments/:id", CommentsController, :show

    use Phoenix.Controller
    def show(conn), do: text(conn, "users show")
    def top(conn), do: text(conn, "users top")
  end

  defmodule CommentsController do

    assert conn.status == 404
  end

  test "dispatch crash returns 500" do
    {:ok, conn} = simulate_request(Router, :get, "route_that_crashes")
    assert conn.status == 500
    assert conn.resp_body =~ %r/Internal Server Error/
  end
end

