test/unit/effective_date_test.rb in hqmf2js-1.3.0 vs test/unit/effective_date_test.rb in hqmf2js-1.4.0

- old
+ new

@@ -1,12 +1,11 @@ require_relative '../test_helper' -class EffectiveDateTest < Test::Unit::TestCase +class EffectiveDateTest < Minitest::Test def setup # Open a path to all of our fixtures - hqmf_contents = File.open("test/fixtures/NQF59New.xml").read - - doc = HQMF::Parser.parse(hqmf_contents, HQMF::Parser::HQMF_VERSION_2) + model = JSON.parse(File.open("test/fixtures/NQF59New.json").read) + doc = HQMF::Document.from_json(model) # First compile the CoffeeScript that enables our converted HQMF JavaScript ctx = Sprockets::Environment.new(File.expand_path("../../..", __FILE__)) Tilt::CoffeeScriptTemplate.default_bare = true ctx.append_path "app/assets/javascripts" \ No newline at end of file