Changeset 297

Show
Ignore:
Timestamp:
12/23/07 07:34:32 (8 months ago)
Author:
gethema..@gmail.com
Message:

check in patch by jason

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/script/bdrb_test_helper.rb

    r280 r297  
    1 require File.dirname(__FILE__) + '/../test_helper' 
     1require File.dirname(__FILE__) + '/test_helper' 
    22WORKER_ROOT = RAILS_ROOT + "/lib/workers" 
    33$LOAD_PATH.unshift(WORKER_ROOT) 
     
    3939  class MetaWorker 
    4040    attr_accessor :logger 
     41    attr_accessor :thread_pool 
    4142    iattr_accessor :worker_name 
    4243    iattr_accessor :no_auto_load 
    4344 
    44     def initializes 
     45    def initialize 
    4546      @logger = WorkerDummyLogger.new 
     47      @thread_pool = ThreadPool.new 
     48    end 
     49     
     50    def register_status(arg) 
     51      @status = arg 
     52    end 
     53  end 
     54   
     55  class ThreadPool 
     56    def defer(args,&block) 
     57      yield args 
    4658    end 
    4759  end