Skip to content

Commit

Permalink
Passing spec Ch36/ECC service history lookup
Browse files Browse the repository at this point in the history
  • Loading branch information
micahaspyr committed Apr 23, 2024
1 parent 855b639 commit 0f6466e
Show file tree
Hide file tree
Showing 2 changed files with 144 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

require 'rails_helper'
require 'support/controller_spec_helper'
require 'lighthouse/veteran_verification/service'
require 'lighthouse/service_exception'

RSpec.describe V0::EducationCareerCounselingClaimsController, type: :controller do
let(:loa3_user) { create(:evss_user) }
Expand Down Expand Up @@ -53,4 +55,22 @@
end
end
end

describe 'GET service_history' do
before(:each) do

Check failure on line 60 in spec/controllers/v0/education_career_counseling_claims_controller_spec.rb

View workflow job for this annotation

GitHub Actions / Linting and Security

RSpec/HookArgument: Omit the default `:each` argument for RSpec hooks.
@service = VeteranVerification::Service.new
allow_any_instance_of(Auth::ClientCredentials::Service).to receive(:get_token).and_return('blahblech')
end

context 'logged in user with icn' do
let(:icn) { '123498767V234859'}

Check failure on line 66 in spec/controllers/v0/education_career_counseling_claims_controller_spec.rb

View workflow job for this annotation

GitHub Actions / Linting and Security

Layout/SpaceInsideBlockBraces: Space missing inside }.

it 'returns the service history' do
VCR.use_cassette('lighthouse/veteran_verification/service_history/200_response') do
response = @service.get_service_history(icn, '', '')
expect(response['data'][0]['id']).to eq('2305d238-dee4-5c98-858a-f912e3c059f8')
end
end
end
end
end

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 0f6466e

Please sign in to comment.