@@ -487,6 +487,15 @@ defmodule PropTrackrWeb.SearchControllerTest do
assertresult=~~r/Search results/
end
test"4.4 Unauthenticated user should be redirected to login page when trying to view a saved search page",%{conn:conn}do
conn=getconn,"/search/1"
assertredirected_to(conn)=="/login"
conn=getconn,redirected_to(conn)
assertget_flash(conn,:error)=~~r/You are not logged in/
end
test"4.4 Authenticated user should not see another user's search when clicking on it",%{conn:conn,user:user,another_user:another_user,properties:_properties}do