class RSpec::Sidekiq::Matchers::EnqueuedJob

Attributes

job[R]

Public Class Methods

new(job) click to toggle source
# File lib/rspec/sidekiq/matchers/base.rb, line 89
def initialize(job)
  @job = job
end

Public Instance Methods

==(other) click to toggle source
Calls superclass method
# File lib/rspec/sidekiq/matchers/base.rb, line 105
def ==(other)
  super(other) unless other.is_a?(EnqueuedJob)

  jid == other.jid
end
Also aliased as: eql?
args() click to toggle source
# File lib/rspec/sidekiq/matchers/base.rb, line 97
def args
  @args ||= JobArguments.new(job).unwrapped_arguments
end
context() click to toggle source
# File lib/rspec/sidekiq/matchers/base.rb, line 101
def context
  @context ||= job.except("args")
end
eql?(other)
Alias for: ==
jid() click to toggle source
# File lib/rspec/sidekiq/matchers/base.rb, line 93
def jid
  job["jid"]
end