test/unit/js_object_test.rb in hqmf2js-1.3.0 vs test/unit/js_object_test.rb in hqmf2js-1.4.0
- old
+ new
@@ -1,9 +1,9 @@
require_relative '../test_helper'
require 'hquery-patient-api'
-class JSObjectTest < Test::Unit::TestCase
+class JSObjectTest < Minitest::Test
def setup
end
def test_library_functions_with_crosswalk
@@ -15,10 +15,10 @@
def test_js_initialize_specifics
js = HQMF2JS::Generator::JS.new nil
criteria = HQMF::DataCriteria.from_json(nil, JSON.parse(File.read(File.join('test','fixtures','json','data_criteria','specific_occurrence.json'))))
expected = "hqmfjs.initializeSpecifics = function(patient_api, hqmfjs) { hqmf.SpecificsManager.initialize(patient_api,hqmfjs,{\"id\":\"\",\"type\":\"ENCOUNTER_PERFORMED_INPATIENT_ENCOUNTER\",\"function\":\"OccurrenceAInpatientEncounter1\"}) }"
result = js.js_initialize_specifics([criteria])
- result.must_equal expected
+ assert_equal expected, result
end
def test_to_js_without_codes
end
\ No newline at end of file