require 'rails_helper'

RSpec.describe VisitsController, type: :controller do
  before do skip 'Status not yet implemented' end

  describe 'show' do
    let(:visit) { create(:visit) }

    it 'assigns the visit to @visit' do
      get :show, id: visit.id, locale: 'en'
      expect(assigns(:visit)).to eq(visit)
    end
  end
end

require 'rails_helper'

RSpec.describe VisitsController, type: :controller do
  describe 'show' do
    let(:visit) { instance_double(Visit, id: '123456789') }
    let(:pvb_api) { Rails.configuration.pvb_api }

    it 'calls the get visit API' do
      expect(pvb_api).to receive(:get_visit).with(visit.id).and_return(visit)
      get :show, id: visit.id, locale: 'en'
      expect(assigns(:visit)).to eq(visit)
    end
  end
end

Add simple spec for visit status page
Add simple spec for visit status page
