asciinema.org/test/controllers/asciicast_file_controller_test.exs

13 lines
401 B
Elixir
Raw Normal View History

2017-06-07 17:55:02 +00:00
defmodule Asciinema.AsciicastFileControllerTest do
use Asciinema.ConnCase
test "renders asciicast file", %{conn: conn} do
asciicast = fixture(:asciicast)
width = asciicast.terminal_columns
conn = get conn, asciicast_file_download_path(conn, asciicast)
assert %{"version" => 1,
"width" => ^width,
"stdout" => [_ | _]} = json_response(conn, 200)
end
end