test/file_persistence_test.rb in openwferu-0.9.12 vs test/file_persistence_test.rb in openwferu-0.9.12.863

- old
+ new

@@ -50,21 +50,42 @@ assert_equal a[0], fei.wfid assert_equal a[1], fei.expression_id assert_equal a[2], fei.expression_name end + + def test_other_workdir + + context = ac + context[:work_directory] = "work2" + + fei = new_fei() + fes = YamlFileExpressionStorage.new("yaml", ac) + #fe = SequenceExpression.new(fei, nil, nil, nil, nil) + #fes[fei] = fe + + assert File.exist?("work2") + + FileUtils.rm_rf("work2") + assert (not File.exist?("work2")) + end # # test UTF-8 data persistence def test_utf8_with_file + workflow_definition_name = "みんなにARIGATOU★☆に関する最新の情報公開" fei = new_fei(workflow_definition_name) fes = YamlFileExpressionStorage.new("yaml", ac) fe = SequenceExpression.new(fei, nil, nil, nil, nil) loaded = test_persistence(fes, fe) + + #puts + #puts fei.workflow_definition_name #puts loaded.fei.workflow_definition_name - assert loaded.fei.workflow_definition_name == fei.workflow_definition_name + + assert_equal loaded.fei.workflow_definition_name, fei.workflow_definition_name end protected