From 701ba36b540bea26a6f5b3e5468e8e46de0793d7 Mon Sep 17 00:00:00 2001 From: Steve Kemp Date: Tue, 17 Feb 2015 20:49:59 +0000 Subject: Now we work with multiple implementations. --- lib/custodian/worker.rb | 16 ++++------------ 1 file changed, 4 insertions(+), 12 deletions(-) diff --git a/lib/custodian/worker.rb b/lib/custodian/worker.rb index 067f98c..87f2c7e 100644 --- a/lib/custodian/worker.rb +++ b/lib/custodian/worker.rb @@ -149,18 +149,10 @@ module Custodian # # Create the test-object from our class-factory # - # TODO: Here is where we'd handle multiple test-implementations - # instead of .create returning a single Test-object it would - # return an array of same. - # - test = Custodian::TestFactory.create( job ) - - # - # - # - # Now process it. - # - process_single_test( test ) + Custodian::TestFactory.create( job ).each do |test| + puts "CREATED FROM JOB: #{test.class}" + process_single_test( test ) + end end -- cgit v1.2.1