Skip to content

Commit

Permalink
Add swagger tests
Browse files Browse the repository at this point in the history
  • Loading branch information
indocomsoft committed May 19, 2018
1 parent d30a023 commit a1e341b
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
9 changes: 9 additions & 0 deletions test/cadet_web/controllers/session_controller_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,15 @@ defmodule CadetWeb.SessionControllerTest do

import Cadet.Factory

alias CadetWeb.SessionController

test "swagger" do
# Cos swagger
SessionController.swagger_definitions
# Found out the real name after macro from source code
SessionController.swagger_path_create nil
end

test "GET /session/new", %{conn: conn} do
conn = get(conn, "/session/new")
assert html_response(conn, 200)
Expand Down
9 changes: 9 additions & 0 deletions test/cadet_web/router_test.exs
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
defmodule CadetWeb.RouterTest do
use ExUnit.Case, async: true

alias CadetWeb.Router

test "Swagger" do
Router.swagger_info
end
end

0 comments on commit a1e341b

Please sign in to comment.