1
expect(MyWorker).to have_enqueued_sidekiq_job().at(Time.now)

causing me to get this error

undefined method at for #RSpec::Matchers::BuiltIn::Has:0x007fecb7f0a068`

Here are my rspec Gems

rspec (3.6.0)
rspec-core (3.6.0)
rspec-expectations (3.6.0)
rspec-mocks (3.6.0)
rspec-sidekiq (3.0.3)
rspec-support (3.6.0)
Maged Makled
  • 1,918
  • 22
  • 25
  • Have you tried to pass any arguments in `have_enqueued_sidekiq_job`? – zishe Jan 02 '18 at 07:25
  • My perform does't take any args, so I'm not sure what I should be passing. I also tried with no luck ` expect(MyWorker).to have_enqueued_sidekiq_job.at(Time.now)` – Maged Makled Jan 02 '18 at 15:16

1 Answers1

3

Fixed it with require rspec-sidekiq in spec_helper.rb

Maged Makled
  • 1,918
  • 22
  • 25