Sha256: 33e003d5fd7c576043677d6a4a6aa3ba005ae1fe1a1e1ec0aa55130092de7e96

Contents?: true

Size: 553 Bytes

Versions: 14

Compression:

Stored size: 553 Bytes

Contents

def stub_mirth(patient_id = '123')
  stub_request(:post, Roqua::Healthy.a19_endpoint)
    .with(body: {application: 'healthy', method: 'A19', patient_id: patient_id})
end

def stub_mirth_response(response, status = 200, patient_id = '123')
  stub_mirth(patient_id).to_return(status: status, headers: {}, body: response)
end

def load_fixture(name, patient_id = '123')
  fixture_filename = File.expand_path(File.join(__FILE__, "../../fixtures", "#{name}.xml"))
  response = File.read(fixture_filename)
  stub_mirth_response(response, 200, patient_id)
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
roqua-healthy-1.2.0 spec/support/fixtures.rb
roqua-healthy-1.1.9 spec/support/fixtures.rb
roqua-healthy-1.1.8 spec/support/fixtures.rb
roqua-healthy-1.1.7 spec/support/fixtures.rb
roqua-healthy-1.1.6 spec/support/fixtures.rb
roqua-healthy-1.1.5 spec/support/fixtures.rb
roqua-healthy-1.1.4 spec/support/fixtures.rb
roqua-healthy-1.1.3 spec/support/fixtures.rb
roqua-healthy-1.1.2 spec/support/fixtures.rb
roqua-healthy-1.1.1 spec/support/fixtures.rb
roqua-healthy-1.1.0 spec/support/fixtures.rb
roqua-healthy-1.0.2 spec/support/fixtures.rb
roqua-healthy-1.0.1 spec/support/fixtures.rb
roqua-healthy-1.0.0 spec/support/fixtures.rb