RSpec.describe 'PACS', type: :request do
  ["/en/tools/#{ToolMountPoint::Pacs::EN_ID}",
   "/cy/tools/#{ToolMountPoint::Pacs::CY_ID}"].each do |path|
    describe path do
      before do
        get(path)
      end

      specify { expect(response).to be_ok }
    end
  end
end

RSpec.describe 'PACS', type: :request do
  ["/en/tools/#{ToolMountPoint::Pacs::EN_ID}",
   "/cy/tools/#{ToolMountPoint::Pacs::CY_ID}"].each do |path|
    describe path do
      before do
        allow(Pacs::PaymentAccountCollection)
          .to receive(:latest).and_return(
            instance_double(
              Pacs::PaymentAccountCollection,
              updated_at: Time.current,
              payment_accounts: []
            )
          )
        get(path)
      end

      specify { expect(response).to be_ok }
    end
  end
end

Update request spec for pacs engine
Update request spec for pacs engine

We need to stub some class methods which the pacs engine controller
calls in order to assign variables for the root view.

This is a short term solution and we may want to revisit how
we assign these variables in pacs longer term.
