diff --git a/lib/exmr/users/user_notifier.ex b/lib/exmr/users/user_notifier.ex index 9a4ad5d..f7348f6 100644 --- a/lib/exmr/users/user_notifier.ex +++ b/lib/exmr/users/user_notifier.ex @@ -8,7 +8,7 @@ defmodule Exmr.Users.UserNotifier do email = new() |> to(recipient) - |> from({"Exmr", "contact@example.com"}) + |> from({"Exmr", "contact@vavakado.xyz"}) |> subject(subject) |> text_body(body) diff --git a/test/exmr/users_test.exs b/test/exmr/users_test.exs index d440435..21d58cb 100644 --- a/test/exmr/users_test.exs +++ b/test/exmr/users_test.exs @@ -8,7 +8,7 @@ defmodule Exmr.UsersTest do describe "get_user_by_email/1" do test "does not return the user if the email does not exist" do - refute Users.get_user_by_email("unknown@example.com") + refute Users.get_user_by_email("unknown@vavakado.xyz") end test "returns the user if the email exists" do @@ -19,7 +19,7 @@ defmodule Exmr.UsersTest do describe "get_user_by_email_and_password/2" do test "does not return the user if the email does not exist" do - refute Users.get_user_by_email_and_password("unknown@example.com", "hello world!") + refute Users.get_user_by_email_and_password("unknown@vavakado.xyz", "hello world!") end test "does not return the user if the password is not valid" do @@ -182,14 +182,14 @@ defmodule Exmr.UsersTest do test "sends token through notification", %{user: user} do token = extract_user_token(fn url -> - Users.deliver_user_update_email_instructions(user, "current@example.com", url) + Users.deliver_user_update_email_instructions(user, "current@vavakado.xyz", url) end) {:ok, token} = Base.url_decode64(token, padding: false) assert user_token = Repo.get_by(UserToken, token: :crypto.hash(:sha256, token)) assert user_token.user_id == user.id assert user_token.sent_to == user.email - assert user_token.context == "change:current@example.com" + assert user_token.context == "change:current@vavakado.xyz" end end @@ -223,7 +223,7 @@ defmodule Exmr.UsersTest do end test "does not update email if user email changed", %{user: user, token: token} do - assert Users.update_user_email(%{user | email: "current@example.com"}, token) == :error + assert Users.update_user_email(%{user | email: "current@vavakado.xyz"}, token) == :error assert Repo.get!(User, user.id).email == user.email assert Repo.get_by(UserToken, user_id: user.id) end diff --git a/test/exmr_web/live/user_confirmation_instructions_live_test.exs b/test/exmr_web/live/user_confirmation_instructions_live_test.exs index 101360e..cbf56ab 100644 --- a/test/exmr_web/live/user_confirmation_instructions_live_test.exs +++ b/test/exmr_web/live/user_confirmation_instructions_live_test.exs @@ -54,7 +54,7 @@ defmodule ExmrWeb.UserConfirmationInstructionsLiveTest do {:ok, conn} = lv - |> form("#resend_confirmation_form", user: %{email: "unknown@example.com"}) + |> form("#resend_confirmation_form", user: %{email: "unknown@vavakado.xyz"}) |> render_submit() |> follow_redirect(conn, ~p"/") diff --git a/test/exmr_web/live/user_forgot_password_live_test.exs b/test/exmr_web/live/user_forgot_password_live_test.exs index 887def9..6edf9a9 100644 --- a/test/exmr_web/live/user_forgot_password_live_test.exs +++ b/test/exmr_web/live/user_forgot_password_live_test.exs @@ -52,7 +52,7 @@ defmodule ExmrWeb.UserForgotPasswordLiveTest do {:ok, conn} = lv - |> form("#reset_password_form", user: %{"email" => "unknown@example.com"}) + |> form("#reset_password_form", user: %{"email" => "unknown@vavakado.xyz"}) |> render_submit() |> follow_redirect(conn, "/") diff --git a/test/support/fixtures/users_fixtures.ex b/test/support/fixtures/users_fixtures.ex index 7b656d5..2f5bf7a 100644 --- a/test/support/fixtures/users_fixtures.ex +++ b/test/support/fixtures/users_fixtures.ex @@ -4,7 +4,7 @@ defmodule Exmr.UsersFixtures do entities via the `Exmr.Users` context. """ - def unique_user_email, do: "user#{System.unique_integer()}@example.com" + def unique_user_email, do: "user#{System.unique_integer()}@vavakado.xyz" def valid_user_password, do: "hello world!" def valid_user_attributes(attrs \\ %{}) do