test/unit/test_job.rb in cloud-crowd-0.2.1 vs test/unit/test_job.rb in cloud-crowd-0.2.2

- old
+ new

@@ -29,9 +29,14 @@ @job.check_for_completion assert @job.reload.all_work_units_complete? assert @job.percent_complete == 100 assert @job.outputs == "[\"hello\"]" end + + should "not throw a FloatDomainError, even when WorkUnits have vanished" do + @job.work_units.destroy_all + assert @job.percent_complete == 100 + end should "be able to create a job from a JSON request" do job = CloudCrowd::Job.create_from_request(JSON.parse(<<-EOS { "inputs" : ["one", "two", "three"], "action" : "graphics_magick",