initial example environment variable used for project with MIX_ENV=prod (production environment) creating base response for any response development mode deployment for postgresql
13 lines
370 B
Elixir
13 lines
370 B
Elixir
defmodule BlogserviceWeb.ErrorJSONTest do
|
|
use BlogserviceWeb.ConnCase, async: true
|
|
|
|
test "renders 404" do
|
|
assert BlogserviceWeb.ErrorJSON.render("404.json", %{}) == %{errors: %{detail: "Not Found"}}
|
|
end
|
|
|
|
test "renders 500" do
|
|
assert BlogserviceWeb.ErrorJSON.render("500.json", %{}) ==
|
|
%{errors: %{detail: "Internal Server Error"}}
|
|
end
|
|
end
|