test/rbbt/util/test_task.rb in rbbt-util-3.0.2 vs test/rbbt/util/test_task.rb in rbbt-util-3.0.3

- old
+ new

@@ -25,11 +25,11 @@ end def test_task_options TmpFile.with_file do |f| task = Task.new(:test_task, nil, :name) do |name| Open.write(f, name) end - job = task.job(:job1, :name => "TestName") + job = task.job(:job1, "TestName") assert_equal "job1" << "_" << Misc.hash2md5(:name => "TestName"), job.id job.fork job.join assert File.exists? f @@ -37,34 +37,34 @@ end end def test_task_result task = Task.new(:test_task, nil, :name) do |name| name end - job = task.job(:job1, :name => "TestName") + job = task.job(:job1, "TestName") assert_equal "TestName", job.fork.join.load end def test_task_info task = Task.new(:test_task, nil, :name) do |name| name end - job = task.job(:job1, :name => "TestName") + job = task.job(:job1, "TestName") assert_equal "TestName", job.fork.join.info[:options][:name] end def test_task_status task = Task.new(:test_task, nil, :name) do |name| step :one name end - job = task.job(:job1, :name => "TestName") + job = task.job(:job1, "TestName") assert_equal "TestName", job.fork.join.info[:options][:name] end def test_task_reopen task = Task.new(:test_task, nil, :name) do |name| name end - job = task.job(:job1, :name => "TestName") + job = task.job(:job1, "TestName") assert_equal "TestName", job.fork.join.info[:options][:name] - job = task.job(:job1, :name => "TestName") + job = task.job(:job1, "TestName") assert_equal "TestName", job.join.info[:options][:name] end def test_marshal_persistence task = Task.new(:test_task, :marshal) do @@ -112,7 +112,8 @@ assert File.exists?(job.path) job.clean assert (not File.exists?(job.path)) end + end