require_relative '../test_helper'

class BundleTest < Test::Unit::TestCase

  def test_example_bundle
    client = FHIR::Client.new("feed-test")
    root = File.expand_path '..', File.dirname(File.absolute_path(__FILE__))
    bundle_xml = File.read(File.join(root, 'fixtures', 'bundle-example.xml'))
    response = RestClient::Response.create(bundle_xml, {}, {})
    def response.code; 200; end
    clientReply = FHIR::ClientReply.new('feed-test', response)

    bundle = client.parse_reply(FHIR::Bundle, FHIR::Formats::FeedFormat::FEED_XML, clientReply.body)

    assert !bundle.blank?, "Failed to parse example Bundle."
  end

end

require_relative '../test_helper'

class BundleTest < Test::Unit::TestCase

  def test_example_bundle
    client = FHIR::Client.new("feed-test")
    root = File.expand_path '..', File.dirname(File.absolute_path(__FILE__))
    bundle_xml = File.read(File.join(root, 'fixtures', 'bundle-example.xml'))
    response = RestClient::Response.create(bundle_xml, {}, {}, {})
    def response.code; 200; end
    clientReply = FHIR::ClientReply.new('feed-test', response)

    bundle = client.parse_reply(FHIR::Bundle, FHIR::Formats::FeedFormat::FEED_XML, clientReply.body)

    assert !bundle.blank?, "Failed to parse example Bundle."
  end

end

Add required empty hash param for BundleTest
Add required empty hash param for BundleTest
