require "rails_helper" # Test Controller intital test RSpec.describe TestController, type: :controller do let(:valid_session) { {} } describe "GET #index" do it "returns a success response" do get :index, params: {}, session: valid_session expect(response).to be_successful # be_successful expects a HTTP Status code of 200 end end end