summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSteve Kemp <steve@steve.org.uk>2015-02-17 20:49:59 +0000
committerSteve Kemp <steve@steve.org.uk>2015-02-17 20:49:59 +0000
commit701ba36b540bea26a6f5b3e5468e8e46de0793d7 (patch)
tree4edce11b52ce1b8b17c78403e777f1234cfb728c
parent86bf1d0fbdeb8c97cb2f630bfb7c77e7efe1fbc2 (diff)
Now we work with multiple implementations.
-rw-r--r--lib/custodian/worker.rb16
1 files 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