class Crucible::Tests::RobustSearchTest

Public Class Methods

new(client1, client2=nil) click to toggle source
Calls superclass method Crucible::Tests::BaseTest::new
# File lib/tests/suites/search_test_robust.rb, line 13
def initialize(client1, client2=nil)
  super(client1, client2)
  @category = {id: 'core_functionality', title: 'Core Functionality'}
end

Public Instance Methods

description() click to toggle source
# File lib/tests/suites/search_test_robust.rb, line 9
def description
  'Deeper testing of search capabilities.'
end
id() click to toggle source
# File lib/tests/suites/search_test_robust.rb, line 5
def id
  'Search002'
end
setup() click to toggle source
# File lib/tests/suites/search_test_robust.rb, line 18
def setup
  # Create a patient
  patient = Crucible::Generator::Resources.new.minimal_patient
  patient.identifier = [FHIR::Identifier.new]
  patient.identifier[0].value = SecureRandom.urlsafe_base64
  ignore_client_exception { @patient = FHIR::Patient.create(patient) }
  assert @patient, "Response code #{@client.reply.code} on patient creation."
end
teardown() click to toggle source
# File lib/tests/suites/search_test_robust.rb, line 27
def teardown
  ignore_client_exception { @patient.destroy }
end