api specs
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
defmodule ShootingEventPhxWeb.ErrorJSONTest do
|
||||
use ShootingEventPhxWeb.ConnCase, async: true
|
||||
|
||||
test "renders 404" do
|
||||
assert ShootingEventPhxWeb.ErrorJSON.render("404.json", %{}) == %{
|
||||
errors: %{detail: "Not Found"}
|
||||
}
|
||||
end
|
||||
|
||||
test "renders 500" do
|
||||
assert ShootingEventPhxWeb.ErrorJSON.render("500.json", %{}) ==
|
||||
%{errors: %{detail: "Internal Server Error"}}
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user