test/test_helper.rb in hqmf2js-1.0.1 vs test/test_helper.rb in hqmf2js-1.1.0

- old
+ new

@@ -30,25 +30,24 @@ @context.eval(javascript) @context end def initialize_javascript_context(hqmf_utils, codes_json, converted_hqmf) - patient_api = File.open('test/fixtures/patient_api.js').read fixture_json = File.read('test/fixtures/patients/larry_vanderman.json') initialize_patient = 'var numeratorPatient = new hQuery.Patient(larry);' if RUBY_PLATFORM=='java' @context = Rhino::Context.new else @context = V8::Context.new end - @context.eval("#{patient_api} + @context.eval(" #{hqmf_utils} var OidDictionary = #{codes_json}; #{converted_hqmf} var larry = #{fixture_json}; #{initialize_patient}") - @context.eval("Specifics.initialize()") + @context.eval("hqmf.SpecificsManager.initialize()") end def compile_coffee_script ctx = Sprockets::Environment.new(File.expand_path("../../..", __FILE__)) Tilt::CoffeeScriptTemplate.default_bare = true