[day-01] phoenix project setup

Create new phoenix project
This commit is contained in:
Joao P Dubas
2021-06-22 01:55:16 +00:00
parent f02c0ff310
commit 8658384030
29 changed files with 1059 additions and 0 deletions

View File

@@ -0,0 +1,15 @@
defmodule WabanexWeb.ErrorViewTest do
use WabanexWeb.ConnCase, async: true
# Bring render/3 and render_to_string/3 for testing custom views
import Phoenix.View
test "renders 404.json" do
assert render(WabanexWeb.ErrorView, "404.json", []) == %{errors: %{detail: "Not Found"}}
end
test "renders 500.json" do
assert render(WabanexWeb.ErrorView, "500.json", []) ==
%{errors: %{detail: "Internal Server Error"}}
end
end