Sha256: 371f9441f0abc963673a192eb386febe5df38e0f0fe027646fa2c0a15f5a8e8e

Contents?: true

Size: 658 Bytes

Versions: 6

Compression:

Stored size: 658 Bytes

Contents

require 'test_helper'

class MapCalculationJobTest < MiniTest::Unit::TestCase
  include QME::DatabaseAccess

  def setup
    get_db['query_cache'].drop()
    get_db['patient_cache'].drop()
    collection_fixtures(get_db(), 'measures')
    collection_fixtures(get_db(), 'records', '_id')
    collection_fixtures(get_db(), 'bundles')
    load_system_js

    Delayed::Worker.delay_jobs = false
  end

  def test_perform
    options = {'measure_id' => "2E679CD2-3FEC-4A75-A75A-61403E5EFEE8",
               'effective_date' => Time.gm(2011, 1, 15).to_i}

    job = Delayed::Job.enqueue(QME::MapReduce::MeasureCalculationJob.new(options))
    assert job
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
quality-measure-engine-2.5.3 test/unit/qme/map/measure_calculation_job_test.rb
quality-measure-engine-2.5.2 test/unit/qme/map/measure_calculation_job_test.rb
quality-measure-engine-2.5.1 test/unit/qme/map/measure_calculation_job_test.rb
quality-measure-engine-2.5.0 test/unit/qme/map/measure_calculation_job_test.rb
quality-measure-engine-2.4.0 test/unit/qme/map/measure_calculation_job_test.rb
quality-measure-engine-2.3.0 test/unit/qme/map/measure_calculation_job_test.rb