Store a random user id for unauthenticated users as a cookie (#1364)

This commit is contained in:
Ahmad Farhat
2020-04-22 09:46:21 -04:00
committed by GitHub
parent bbec5bdf2d
commit 855694c716
2 changed files with 18 additions and 2 deletions

View File

@ -248,7 +248,7 @@ describe RoomsController, type: :controller do
allow_any_instance_of(BigBlueButton::BigBlueButtonApi).to receive(:is_meeting_running?).and_return(true)
post :join, params: { room_uid: @room, join_name: "Join Name" }
expect(response).to redirect_to(join_path(@owner.main_room, "Join Name", {}))
expect(response).to redirect_to(join_path(@owner.main_room, "Join Name", {}, response.cookies["guest_id"]))
end
it "should render wait if meeting isn't running" do