From 433c8f18a4341844f8cf755146e389b0d61b7a6f 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(-) (limited to 'lib/custodian') 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