Sha256: 9299088ee118ea5d4bdcaeb6920584cb4f0d687166b3e946c62b674a640e056d

Contents?: true

Size: 931 Bytes

Versions: 1

Compression:

Stored size: 931 Bytes

Contents

require_relative '../test_helper'

class ArgonautSprint6Test < Test::Unit::TestCase

  def setup
    @fixtures = File.absolute_path(File.join(File.absolute_path(__FILE__),'..','..','fixtures'))
    @labs = FHIR::Bundle.from_xml File.read(File.join(@fixtures, 'lab_results_bundle.xml'))
    @reports = FHIR::Bundle.from_xml File.read(File.join(@fixtures, 'diagnostic_bundle.xml'))
    @test = Crucible::Tests::ArgonautSprint6Test.new nil
    @test.instance_variable_set(:@warnings, [])
  end

  def test_validate_observation
    reply = FHIR::ClientReply.new nil, nil
    reply.resource = @labs

    reply.response = Struct.new(:code).new(200)

    @test.send(:validate_observation_reply, reply)
  end

  def test_validate_diagnostic_report
    reply = FHIR::ClientReply.new nil, nil
    reply.resource = @reports

    reply.response = Struct.new(:code).new(200)

    @test.send(:validate_diagnostic_report_reply, reply)
  end

end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
plan_executor-1.0.2 test/unit/argonaut_sprint6_test.rb