class Downstream::HaveEnqueuedAsyncSubscriberFor
Attributes
callable[R]
Public Class Methods
new(callable)
click to toggle source
Calls superclass method
# File lib/downstream/rspec/have_enqueued_async_subscriber_for.rb, line 27 def initialize(callable) @callable = callable super(SubscriberJob) end
Public Instance Methods
matches?(proc)
click to toggle source
Calls superclass method
# File lib/downstream/rspec/have_enqueued_async_subscriber_for.rb, line 36 def matches?(proc) raise ArgumentError, "have_enqueued_async_subscriber_for only supports block expectations" unless Proc === proc super end
with(event)
click to toggle source
Calls superclass method
# File lib/downstream/rspec/have_enqueued_async_subscriber_for.rb, line 32 def with(event) super(EventMatcher.new(event), callable.name) end