fix variable name -> local_user

This commit is contained in:
smitten 2023-07-25 11:48:54 -04:00
parent 748cc61fc7
commit 3d790050af
Signed by: smitten
GPG key ID: 1DDD22F13552A07A

View file

@ -69,7 +69,7 @@ test "should return forbidden for unauthed user when target is remote" do
test "should return redirect for unauthed user when target is local AP ID for user" do
clear_config([Pleroma.Web.Endpoint, :url, :host], "sub.example.com")
%{conn: conn} = oauth_access([])
remote_user = insert(:user, %{nickname: "akkoma@sub.example.com", local: true, ap_id: "https://sub.example.com/users/akkoma"})
local_user = insert(:user, %{nickname: "akkoma@sub.example.com", local: true, ap_id: "https://sub.example.com/users/akkoma"})
resp =
conn
@ -77,7 +77,7 @@ test "should return redirect for unauthed user when target is local AP ID for us
|> html_response(302)
assert resp =~ "You are being"
assert resp =~ "<a href=\"/users/#{remote_user.id}\">"
assert resp =~ "<a href=\"/users/#{local_user.id}\">"
end
test "should return redirect for unauthed user when target is local AP ID for note activity" do