diff options
| author | Steve Kemp <steve@steve.org.uk> | 2015-02-17 20:49:59 +0000 | 
|---|---|---|
| committer | Steve Kemp <steve@steve.org.uk> | 2015-02-17 20:49:59 +0000 | 
| commit | 433c8f18a4341844f8cf755146e389b0d61b7a6f (patch) | |
| tree | d0b38f35e76008bad2a228a95abd1705318f4658 /lib/custodian | |
| parent | 35276b1d16affa1e19c4e05cca237c74cee2205e (diff) | |
Now we work with multiple implementations.
Diffstat (limited to 'lib/custodian')
| -rw-r--r-- | lib/custodian/worker.rb | 16 | 
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 | 
