Class: RubyReactor::RSpec::ActiveJobHelpers::PendingJob
- Inherits:
-
Struct
- Object
- Struct
- RubyReactor::RSpec::ActiveJobHelpers::PendingJob
- Defined in:
- lib/ruby_reactor/rspec/active_job_helpers.rb
Instance Attribute Summary collapse
-
#job_class ⇒ Object
Returns the value of attribute job_class.
-
#raw ⇒ Object
Returns the value of attribute raw.
Instance Method Summary collapse
Instance Attribute Details
#job_class ⇒ Object
Returns the value of attribute job_class
11 12 13 |
# File 'lib/ruby_reactor/rspec/active_job_helpers.rb', line 11 def job_class @job_class end |
#raw ⇒ Object
Returns the value of attribute raw
11 12 13 |
# File 'lib/ruby_reactor/rspec/active_job_helpers.rb', line 11 def raw @raw end |
Instance Method Details
#args ⇒ Object
17 18 19 |
# File 'lib/ruby_reactor/rspec/active_job_helpers.rb', line 17 def args raw[:args] end |
#perform! ⇒ Object
12 13 14 15 |
# File 'lib/ruby_reactor/rspec/active_job_helpers.rb', line 12 def perform! ::ActiveJob::Base.queue_adapter.enqueued_jobs.delete(raw) job_class.new(*raw[:args]).perform_now end |