You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
13 lines
404 B
Elixir
13 lines
404 B
Elixir
defmodule Asciinema.AsciicastFileControllerTest do
|
|
use AsciinemaWeb.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
|