Class: RSpec::Sidekiq::Matchers::JobOptionParser Private

Inherits:
Object
  • Object
show all
Defined in:
lib/rspec/sidekiq/matchers/base.rb

This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(job) ⇒ JobOptionParser

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Returns a new instance of JobOptionParser.



8
9
10
# File 'lib/rspec/sidekiq/matchers/base.rb', line 8

def initialize(job)
  @job = job
end

Instance Attribute Details

#jobObject (readonly)

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



6
7
8
# File 'lib/rspec/sidekiq/matchers/base.rb', line 6

def job
  @job
end

Instance Method Details

#matches?(options) ⇒ Boolean

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Returns:

  • (Boolean)


12
13
14
# File 'lib/rspec/sidekiq/matchers/base.rb', line 12

def matches?(options)
  with_context(**options)
end