Sha256: db356650802f05bb4b926cc3009e6fbe86dc8500e36f5ed43f788903439c8f28
Contents?: true
Size: 554 Bytes
Versions: 3
Compression:
Stored size: 554 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
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
roqua-healthy-1.4.1 | spec/support/fixtures.rb |
roqua-healthy-1.3.0 | spec/support/fixtures.rb |
roqua-healthy-1.2.1 | spec/support/fixtures.rb |