```ruby
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
```

Deal with deprecation warning re Rails 6 and the predicate
user
```ruby
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
```
assistant