mirror of
https://github.com/philomena-dev/philomena.git
synced 2025-02-23 21:54:33 +01:00
Further clean up.
This commit is contained in:
parent
6988e7caf4
commit
cb9cf4c868
1 changed files with 1 additions and 3 deletions
|
@ -3,12 +3,11 @@ defmodule PhilomenaWeb.ReactivationControllerTest do
|
||||||
|
|
||||||
alias Swoosh.Adapters.Local.Storage.Memory
|
alias Swoosh.Adapters.Local.Storage.Memory
|
||||||
alias Philomena.Users
|
alias Philomena.Users
|
||||||
alias Phoenix.Flash
|
|
||||||
|
|
||||||
setup :register_and_log_in_user
|
setup :register_and_log_in_user
|
||||||
|
|
||||||
describe "GET /reactivations/:id" do
|
describe "GET /reactivations/:id" do
|
||||||
test "renders the reactivate account page", %{conn: conn, user: user} do
|
test "renders the reactivate account page", %{conn: conn} do
|
||||||
conn = delete(conn, ~p"/deactivations")
|
conn = delete(conn, ~p"/deactivations")
|
||||||
conn = get(conn, ~p"/reactivations/pinkie-pie-is-best-pony")
|
conn = get(conn, ~p"/reactivations/pinkie-pie-is-best-pony")
|
||||||
response = html_response(conn, 200)
|
response = html_response(conn, 200)
|
||||||
|
@ -31,5 +30,4 @@ defmodule PhilomenaWeb.ReactivationControllerTest do
|
||||||
defp extract_reactivation_link_from_email(email = %Swoosh.Email{}) do
|
defp extract_reactivation_link_from_email(email = %Swoosh.Email{}) do
|
||||||
Regex.scan(~r/http:\/\/localhost:4002\/reactivations\/.*/, email.text_body) |> hd |> hd
|
Regex.scan(~r/http:\/\/localhost:4002\/reactivations\/.*/, email.text_body) |> hd |> hd
|
||||||
end
|
end
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue