12 lines
342 B
1
defmodule BlogWeb.ErrorJSONTest do
2
use BlogWeb.ConnCase, async: true
3
4
test "renders 404" do
5
assert BlogWeb.ErrorJSON.render("404.json", %{}) == %{errors: %{detail: "Not Found"}}
6
end
7
8
test "renders 500" do
9
assert BlogWeb.ErrorJSON.render("500.json", %{}) ==
10
%{errors: %{detail: "Internal Server Error"}}
11
end
12
end
13