Module: ActiveJob::TestHelper::TestQueueAdapter::ClassMethods

Defined in:
activejob/lib/active_job/test_helper.rb

Instance Method Summary collapse

Instance Method Details

#disable_test_adapterObject



24
25
26
# File 'activejob/lib/active_job/test_helper.rb', line 24

def disable_test_adapter
  self._test_adapter = nil
end

#enable_test_adapter(test_adapter) ⇒ Object



28
29
30
# File 'activejob/lib/active_job/test_helper.rb', line 28

def enable_test_adapter(test_adapter)
  self._test_adapter = test_adapter
end

#queue_adapterObject



20
21
22
# File 'activejob/lib/active_job/test_helper.rb', line 20

def queue_adapter
  self._test_adapter.nil? ? super : self._test_adapter
end