Rename repository
This commit is contained in:
parent
4aeb2d2cd8
commit
232df26b85
71 changed files with 348 additions and 345 deletions
|
@ -1,5 +1,5 @@
|
|||
defmodule MatrixServerWeb.InfoControllerTest do
|
||||
use MatrixServerWeb.ConnCase
|
||||
defmodule ArchitexWeb.InfoControllerTest do
|
||||
use ArchitexWeb.ConnCase
|
||||
|
||||
test "versions endpoint returns a list of supported Matrix spec versions", %{conn: conn} do
|
||||
conn = get(conn, Routes.info_path(conn, :versions))
|
||||
|
@ -9,7 +9,7 @@ defmodule MatrixServerWeb.InfoControllerTest do
|
|||
end
|
||||
|
||||
test "unrecognized route renders M_UNRECOGNIZED error", %{conn: conn} do
|
||||
conn = get(conn, MatrixServerWeb.Endpoint.url() <> "/sneed")
|
||||
conn = get(conn, ArchitexWeb.Endpoint.url() <> "/sneed")
|
||||
|
||||
assert %{"errcode" => "M_UNRECOGNIZED"} = json_response(conn, 400)
|
||||
end
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
defmodule MatrixServerWeb.LoginControllerTest do
|
||||
use MatrixServerWeb.ConnCase
|
||||
defmodule ArchitexWeb.LoginControllerTest do
|
||||
use ArchitexWeb.ConnCase
|
||||
|
||||
alias MatrixServer.Factory
|
||||
alias MatrixServerWeb.Endpoint
|
||||
alias Architex.Factory
|
||||
alias ArchitexWeb.Endpoint
|
||||
|
||||
@basic_params %{
|
||||
"type" => "m.login.password",
|
||||
|
@ -31,7 +31,7 @@ defmodule MatrixServerWeb.LoginControllerTest do
|
|||
recycle(conn)
|
||||
|> post_json(Routes.login_path(Endpoint, :login), %{
|
||||
@basic_params
|
||||
| "identifier" => %{"type" => "m.id.user", "user" => MatrixServer.get_mxid("sneed")}
|
||||
| "identifier" => %{"type" => "m.id.user", "user" => Architex.get_mxid("sneed")}
|
||||
})
|
||||
|
||||
assert %{"user_id" => _, "access_token" => _, "device_id" => _} = json_response(conn, 200)
|
||||
|
|
|
@ -1,10 +1,10 @@
|
|||
defmodule MatrixServerWeb.RegisterControllerTest do
|
||||
use MatrixServerWeb.ConnCase
|
||||
defmodule ArchitexWeb.RegisterControllerTest do
|
||||
use ArchitexWeb.ConnCase
|
||||
|
||||
import Ecto.Query
|
||||
|
||||
alias MatrixServer.{Repo, Device, Factory}
|
||||
alias MatrixServerWeb.Endpoint
|
||||
alias Architex.{Repo, Device, Factory}
|
||||
alias ArchitexWeb.Endpoint
|
||||
|
||||
@basic_params %{
|
||||
"username" => "user",
|
||||
|
@ -22,7 +22,7 @@ defmodule MatrixServerWeb.RegisterControllerTest do
|
|||
|
||||
test "registers account with minimal information", %{conn: conn} do
|
||||
conn = post_json(conn, Routes.register_path(Endpoint, :register), @basic_params)
|
||||
user_id = MatrixServer.get_mxid("user")
|
||||
user_id = Architex.get_mxid("user")
|
||||
|
||||
assert %{"access_token" => _, "device_id" => _, "user_id" => ^user_id} =
|
||||
json_response(conn, 200)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue