Module: Qe::EnqueueMatcher
- Defined in:
- lib/qe/testing/rspec.rb
Defined Under Namespace
Classes: Matcher
Instance Method Summary collapse
-
#enqueue(worker) ⇒ Object
expect {}.to enqueue(MailerWorker).with(options).
-
#schedule(worker) ⇒ Object
expect {}.to schedule(MailerWorker).on(Time.now).with(options).
Instance Method Details
#enqueue(worker) ⇒ Object
expect {}.to enqueue(MailerWorker).with(options)
88 89 90 |
# File 'lib/qe/testing/rspec.rb', line 88 def enqueue(worker) Matcher.new(worker, false) end |
#schedule(worker) ⇒ Object
expect {}.to schedule(MailerWorker).on(Time.now).with(options)
95 96 97 |
# File 'lib/qe/testing/rspec.rb', line 95 def schedule(worker) Matcher.new(worker, true) end |