require 'rails_helper'

RSpec.describe PagesController do
  it { is_expected.to route(:get, '/').to(action: :homepage) }

  describe "GET #homepage" do
    it 'returns success' do
      get :homepage
      expect(response).to be_a_success
    end
  end
end

require 'rails_helper'

RSpec.describe PagesController do
  it { is_expected.to route(:get, '/').to(action: :homepage) }

  describe "GET #homepage" do
    it 'returns success' do
      get :homepage
      expect(response).to be_successful
    end
  end
end

Deal with deprecation warning re Rails 6 and the predicate
Deal with deprecation warning re Rails 6 and the  predicate
