test/test_cli.rb in tracksperanto-2.6.0 vs test/test_cli.rb in tracksperanto-2.6.1

- old
+ new

@@ -42,9 +42,23 @@ ) assert_same_set fs, Dir.entries(TEMP_DIR) end + def test_cli_with_nonexisting_only_exporter_prints_proper_error_message + status, o, e = cli("--only microsoftfuckingword " + TEMP_DIR + "/flm.stabilizer") + assert_equal 2, status, "Should exit with abnormal state" + assert e.include?("Unknown exporter \"microsoftfuckingword\"") + assert e.include?("The following export modules are available") + end + + def test_cli_with_nonexisting_importer_prints_proper_error_message + status, o, e = cli("--from microsoftfuckingword " + TEMP_DIR + "/flm.stabilizer") + assert_equal 2, status, "Should exit with abnormal state" + assert e.include?("Unknown importer \"microsoftfuckingword\"") + assert e.include?("The following import modules are available") + end + def test_cli_with_only_option FileUtils.cp(File.dirname(__FILE__) + "/import/samples/flame_stabilizer/fromCombustion_fromMidClip_wSnap.stabilizer", TEMP_DIR + "/flm.stabilizer") cli("#{BIN_P} --only syntheyes #{TEMP_DIR}/flm.stabilizer") fs = %w(. .. flm.stabilizer flm_syntheyes_2dt.txt ) assert_same_set fs, Dir.entries(TEMP_DIR) \ No newline at end of file