Fixed 404 on room join (#2092)

This commit is contained in:
Ahmad Farhat
2020-09-17 11:32:06 -04:00
committed by GitHub
parent a27884733d
commit 55dd5725b5
3 changed files with 5 additions and 7 deletions

View File

@ -683,7 +683,7 @@ describe RoomsController, type: :controller do
post :join_specific_room, params: { join_room: { url: "abc" } }
expect(flash[:alert]).to eq(I18n.t("room.no_room.invalid_room_uid"))
expect(response).to redirect_to room_path(@user.main_room)
expect(response).to redirect_to cant_create_rooms_path
end
it "should redirect the user to the room uid they supplied" do