# frozen_string_literal: true

require "rails_helper"

describe "Patient Transplant MDM", type: :request do
  let(:patient) { create(:transplant_patient, family_name: "Rabbit", local_patient_id: "KCH12345") }

  describe "GET show" do
    it "responds successfully" do
      create(:pathology_observation_description, code: "HGB")
      create(:pathology_observation_description, code: "CMVD")

      get patient_transplants_mdm_path(patient)

      expect(response).to be_successful
    end
  end
end
