diff options
author | Mark Felder <feld@feld.me> | 2023-05-31 13:36:21 -0400 |
---|---|---|
committer | Mark Felder <feld@feld.me> | 2023-05-31 13:36:21 -0400 |
commit | e3110cb34e350bc9353d082328778daae47ba9e8 (patch) | |
tree | de9646f4b28972e50236f764e23d20423f853767 /test | |
parent | 6e1ea2eafc24cb31e796e93313dcf9c6b6ba9845 (diff) | |
download | pleroma-e3110cb34e350bc9353d082328778daae47ba9e8.tar.gz pleroma-e3110cb34e350bc9353d082328778daae47ba9e8.zip |
Fix deprecated calls to get_flash/2
Diffstat (limited to 'test')
-rw-r--r-- | test/pleroma/web/o_auth/o_auth_controller_test.exs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/pleroma/web/o_auth/o_auth_controller_test.exs b/test/pleroma/web/o_auth/o_auth_controller_test.exs index f41d6a322..83a08d9fc 100644 --- a/test/pleroma/web/o_auth/o_auth_controller_test.exs +++ b/test/pleroma/web/o_auth/o_auth_controller_test.exs @@ -186,7 +186,7 @@ defmodule Pleroma.Web.OAuth.OAuthControllerTest do assert html_response(conn, 302) assert redirected_to(conn) == app.redirect_uris - assert get_flash(conn, :error) == "Failed to authenticate: (error description)." + assert conn.assigns.flash["error"] == "Failed to authenticate: (error description)." end test "GET /oauth/registration_details renders registration details form", %{ @@ -307,7 +307,7 @@ defmodule Pleroma.Web.OAuth.OAuthControllerTest do |> post("/oauth/register", bad_params) assert html_response(conn, 403) =~ ~r/name="op" type="submit" value="register"/ - assert get_flash(conn, :error) == "Error: #{bad_param} has already been taken." + assert conn.assigns.flash["error"] == "Error: #{bad_param} has already been taken." end end @@ -398,7 +398,7 @@ defmodule Pleroma.Web.OAuth.OAuthControllerTest do |> post("/oauth/register", params) assert html_response(conn, 401) =~ ~r/name="op" type="submit" value="connect"/ - assert get_flash(conn, :error) == "Invalid Username/Password" + assert conn.assigns.flash["error"] == "Invalid Username/Password" end end |