RSpec.describe 'Static page routing', type: :request  do
  describe '/tools/annuities' do
    context 'when the feature flag is enabled' do
      it 'routes correctly' do
        Feature.with(:annuities_landing_page) do
          expect(get('/en/tools/annuities')).to route_to(
            controller: 'landing_pages',
            action:     'show',
            locale:     'en',
            id:         'annuities'
          )
        end
      end
    end

    context 'when the feature flag is disabled' do
      it 'does not route' do
        Feature.without(:annuities_landing_page) do
          expect {
            get('/en/tools/annuities')
          }.to raise_error(ActionController::RoutingError, 'Not Found')
        end
      end
    end
  end
end

RSpec.describe 'Static page routing', type: :request  do
  describe '/tools/annuities' do
    context 'when the feature flag is enabled' do
      it 'routes correctly' do
        Feature.with(:annuities_landing_page) do
          get('/en/tools/annuities')
          expect(response).to be_success
        end
      end
    end

    context 'when the feature flag is disabled' do
      it 'does not route' do
        Feature.without(:annuities_landing_page) do
          expect {
            get('/en/tools/annuities')
          }.to raise_error(ActionController::RoutingError, 'Not Found')
        end
      end
    end
  end
end

Change the matcher verification for annuites spec
Change the matcher verification for annuites spec

* The spec was renamed to requests so the route to does not exist
here. Changing the matcher will fix the spec.
* This only spec can be runned with anuites feature flag turn on
