Skip to content

Commit

Permalink
Update specs to work with 1.0.0-preview version
Browse files Browse the repository at this point in the history
  • Loading branch information
projkov committed Dec 5, 2024
1 parent a550633 commit a290798
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion spec/au_core/include_search_test_spec.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# frozen_string_literal: true

RSpec.describe AUCoreTestKit::SearchTest do
let(:suite) { Inferno::Repositories::TestSuites.new.find('au_core_v100_ballot') }
let(:suite) { Inferno::Repositories::TestSuites.new.find('au_core_v100_preview') }
let(:session_data_repo) { Inferno::Repositories::SessionData.new }
let(:test_session) { repo_create(:test_session, test_suite_id: suite.id) }
let(:url) { 'http://example.com/fhir' }
Expand Down
12 changes: 6 additions & 6 deletions spec/au_core/search_test_spec.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# frozen_string_literal: true

RSpec.describe AUCoreTestKit::SearchTest do
let(:suite) { Inferno::Repositories::TestSuites.new.find('au_core_v100_ballot') }
let(:suite) { Inferno::Repositories::TestSuites.new.find('au_core_v100_preview') }
let(:session_data_repo) { Inferno::Repositories::SessionData.new }
let(:test_session) { repo_create(:test_session, test_suite_id: suite.id) }
let(:url) { 'http://example.com/fhir' }
Expand Down Expand Up @@ -138,7 +138,7 @@ def run(runnable, inputs = {})
# describe 'search with Encounter status with optional multiple-or requirement' do
# let(:patient_id) { '123' }
# let(:test_class) do
# Class.new(AUCoreTestKit::AUCoreV100_BALLOT::EncounterDatePatientSearchTest) do
# Class.new(AUCoreTestKit::AUCoreV100_PREVIEW::EncounterDatePatientSearchTest) do
# fhir_client { url :url }
# input :url, :patient_ids
# end
Expand Down Expand Up @@ -375,7 +375,7 @@ def scratch_resources

describe '#search_param_value' do
context 'Array element having DAR extension' do
let(:test_class) { AUCoreTestKit::AUCoreV100_BALLOT::PatientNameSearchTest }
let(:test_class) { AUCoreTestKit::AUCoreV100_PREVIEW::PatientNameSearchTest }
let(:test) { test_class.new }
let(:search_value) { 'family_name' }
let(:patient) do
Expand Down Expand Up @@ -410,7 +410,7 @@ def scratch_resources
# TODO: Fix it
# describe '#perform_comparator_searches' do
# let(:test_class) do
# Class.new(AUCoreTestKit::AUCoreV100_BALLOT::ImmunizationPatientDateSearchTest) do
# Class.new(AUCoreTestKit::AUCoreV100_PREVIEW::ImmunizationPatientDateSearchTest) do
# fhir_client { url :url }
# input :url
# end
Expand Down Expand Up @@ -459,7 +459,7 @@ def scratch_resources
# TODO: Fix it
# describe '#test_medication_inclusion' do
# let(:test_class) do
# Class.new(AUCoreTestKit::AUCoreV100_BALLOT::MedicationRequestPatientIntentSearchTest) do
# Class.new(AUCoreTestKit::AUCoreV100_PREVIEW::MedicationRequestPatientIntentSearchTest) do
# fhir_client { url :url }
# input :url
# end
Expand Down Expand Up @@ -582,7 +582,7 @@ def scratch_resources
# end

describe '#is_reference_match' do
let(:test_class) { AUCoreTestKit::AUCoreV100_BALLOT::MedicationRequestPatientIntentSearchTest }
let(:test_class) { AUCoreTestKit::AUCoreV100_PREVIEW::MedicationRequestPatientIntentSearchTest }
let(:test) { test_class.new }
let(:pattern_reference) { 'Medication/1' }

Expand Down

0 comments on commit a290798

Please sign in to comment.