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

View File

@ -97,7 +97,6 @@ class Room < ApplicationRecord
# Fetches all recordings for a room.
def recordings
res = bbb.get_recordings(meetingID: bbb_id)
# Format playbacks in a more pleasant way.
res[:recordings].each do |r|
next if r.key?(:error)