asciinema.org/test/controllers/asciicast_image_controller_test.exs

13 lines
342 B
Elixir
Raw Normal View History

2017-06-07 18:09:36 +00:00
defmodule Asciinema.AsciicastImageControllerTest do
use Asciinema.ConnCase
@tag :a2png
test "renders asciicast image preview", %{conn: conn} do
asciicast = fixture(:asciicast)
conn = get conn, asciicast_image_download_path(conn, asciicast)
assert response(conn, 200)
assert response_content_type(conn, :png)
end
end