finish controller tests

This commit is contained in:
Joshua Arts
2018-06-28 16:55:56 -04:00
parent 63cdbdc874
commit 1acf901c68
5 changed files with 212 additions and 25 deletions

View File

@ -155,7 +155,7 @@ class RoomsController < ApplicationController
def bring_to_room
if current_user
# Redirect authenticated users to their room.
redirect_to room_path(current_user.room)
redirect_to room_path(current_user.main_room)
else
# Redirect unauthenticated users to root.
redirect_to root_path