Open lawhorkl opened 8 years ago
update: I'm using rspec-rails
as I'm working with a Rails application. I read through the readme once more and saw that support for rspec < 3.0 was iffy, so I ran bundle update rspec-rails rspec-core
which put me on the latest releases for both, but to no avail.
I just noticed that the readme makes no mention of actual Rails. I'm hoping this Gem can be used with Rails?
Hi @lawhorkl,
Sorry to be late in replying. Yes, the gem will work with Rails.
In the snippets, the use of the have_queued
matcher is possibly incorrect. The spec is checking the Manager
class while the queue is on the MakeChange
class. Does that help?
Getting this error while trying to run specs using resque_spec. The error is pretty clear what is going on, however from what I understand, the queue is defined in the job that's specified in
enqueue
. I have a queue defined in the job, but for some reason it isn't detecting it?Fairly new to resque in general so it could possibly be something I'm doing wrong, however, here is my simple job and the method I'm trying to test, hopefully there's something I can do:
jobs/MakeChange.rb:
services/notification_manager/manager.rb:
spec/services/notification_manager/manager_spec.rb:
Thanks for the gem, by the way, it it exactly what I needed, only I hope I can get it working :D