class Que::Testing::Adapter
Public Instance Methods
checkout(&block)
click to toggle source
# File lib/que/testing/adapter.rb, line 7 def checkout(&block) end
class_for(str)
click to toggle source
# File lib/que/testing/adapter.rb, line 23 def class_for(str) str.split('::').reduce(Object, &:const_get) end
execute(command, params = [])
click to toggle source
# File lib/que/testing/adapter.rb, line 10 def execute(command, params = []) return [] unless command == :insert_job job = JobParams.new(*params) klass = class_for(job.job_class) jobs[klass] << job params end
jobs()
click to toggle source
# File lib/que/testing/adapter.rb, line 27 def jobs @jobs ||= Hash.new { |h,k| h[k] = [] } end
wake_worker_after_commit()
click to toggle source
# File lib/que/testing/adapter.rb, line 19 def wake_worker_after_commit false end