Added a Recordings page where the user can see all recordings (#352)

This commit is contained in:
farhatahmad
2019-02-04 11:21:42 -05:00
committed by Jesus Federico
parent ef23cae73d
commit 8ff05643dc
8 changed files with 120 additions and 34 deletions

View File

@ -231,4 +231,17 @@ describe UsersController, type: :controller do
expect(response).to render_template(:verify)
end
end
describe "GET #recordings" do
before do
@user1 = create(:user)
@user2 = create(:user)
end
it "redirects to root if the incorrect user tries to access the page" do
get :recordings, params: { current_user: @user2, user_uid: @user1.uid }
expect(response).to redirect_to(root_path)
end
end
end