forked from External/greenlight
Added a Recordings page where the user can see all recordings (#352)
This commit is contained in:
committed by
Jesus Federico
parent
ef23cae73d
commit
8ff05643dc
@ -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
|
||||
|
Reference in New Issue
Block a user