require'rails_helper'describeGroupsControllerdodescribe'GET index'docontext'as a user'doit'redirects to Groups Dashboard'dosign_in(create(:user))get:indexexpect(response).toredirect_to(dashboard_groups_path)endendcontext'as a guest'doit'redirects to Explore Groups'doget:indexexpect(response).toredirect_to(explore_groups_path)endendendend