Skip to content

Commit

Permalink
Add check for error message in tests that are expected to fail
Browse files Browse the repository at this point in the history
  • Loading branch information
emichaud998 committed Oct 13, 2023
1 parent 68d9304 commit f48affd
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions spec/carin_for_blue_button/include_test_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,7 @@ def scratch_resources

result = run(explanation_of_benefit_include_test, search_param: 'ExplanationOfBenefit:patient', c4bb_v200_explanation_of_benefit__id_search_test_param: explanation_of_benefit_id, url: url)
expect(result.result).to eq('fail')
expect(result.result_message).to eq('Returned resource did not include the _include resource parameter')
expect(request).to have_been_made.once
end

Expand All @@ -142,6 +143,7 @@ def scratch_resources

result = run(explanation_of_benefit_include_test, search_param: 'ExplanationOfBenefit:patient', c4bb_v200_explanation_of_benefit__id_search_test_param: explanation_of_benefit_id, url: url)
expect(result.result).to eq('fail')
expect(result.result_message).to eq('No Patient resources were included in the search results')
expect(request).to have_been_made.once
end
end
Expand Down

0 comments on commit f48affd

Please sign in to comment.