test/test_cli.rb in tracksperanto-2.1.1 vs test/test_cli.rb in tracksperanto-2.2.0

- old
+ new

@@ -65,11 +65,11 @@ def test_cli_reformat FileUtils.cp(File.dirname(__FILE__) + "/import/samples/flame_stabilizer/fromCombustion_fromMidClip_wSnap.stabilizer", TEMP_DIR + "/flm.stabilizer") cli("--reformat-x 1204 --reformat-y 340 --only flamestabilizer #{TEMP_DIR}/flm.stabilizer") - p = Tracksperanto::Import::FlameStabilizer.new - f = p.parse(File.open(TEMP_DIR + "/flm_flame.stabilizer")) + p = Tracksperanto::Import::FlameStabilizer.new(:io => File.open(TEMP_DIR + "/flm_flame.stabilizer")) + items = p.to_a assert_equal 1204, p.width, "The width of the converted setup should be that" assert_equal 340, p.height, "The height of the converted setup should be that" end end \ No newline at end of file