require 'rails_helper' RSpec.describe HomeController, type: :controller do describe 'GET #index' do it 'returns 200' do get :index expect(response).to redirect_to(new_user_session_path) end endend