Skip to content

Commit

Permalink
Revert changes to authorized services
Browse files Browse the repository at this point in the history
  • Loading branch information
jasonhoc committed Oct 15, 2024
1 parent 9d4ae1d commit a409a51
Showing 1 changed file with 2 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,10 @@

require_relative '../../../../support/helpers/rails_helper'
RSpec.describe 'Mobile::V0::User::AuthorizedServices', type: :request do
let!(:user) { sis_user(vha_facility_ids: [402, 555]) }
let!(:user) { sis_user }
let(:attributes) { response.parsed_body.dig('data', 'attributes') }

describe 'GET /mobile/v0/user/authorized-services' do
before do
allow(Settings.mhv).to receive(:facility_range).and_return([[1, 999]])
end

it 'includes a hash with all available services and a boolean value of if the user has access' do
get '/mobile/v0/user/authorized-services', headers: sis_headers,
params: { 'appointmentIEN' => '123', 'locationId' => '123' }
Expand All @@ -29,7 +25,7 @@
'paymentHistory' => true,
'preferredName' => true,
'prescriptions' => false,
'scheduleAppointments' => true,
'scheduleAppointments' => false,
'secureMessaging' => false,
'userProfileUpdate' => true }
)
Expand Down

0 comments on commit a409a51

Please sign in to comment.