resque_unit icon indicating copy to clipboard operation
resque_unit copied to clipboard

ResqueScheduler Hooks Disabled

Open RyanMcDonald opened this issue 8 years ago • 4 comments

It looks like resque_unit's enable_hooks! method does not enable resque-scheduler hooks, so there's currently no way to test those.

RyanMcDonald avatar May 12 '17 23:05 RyanMcDonald

I have a branch that should fix most of these incompatibilities between fake resque and real resque. Can you try the with-test-redis branch, and let me know how it goes? I unfortunately haven't had the chance to try it inside a real, complicated app yet, so I haven't merged it.

justinweiss avatar May 15 '17 04:05 justinweiss

Unfortunately, the project I'm working on has an older resque-scheduler version so I am running into issues with your branch since it uses the latest, which introduced a breaking namespace change (require 'resque_scheduler' vs require 'resque-scheduler').

RyanMcDonald avatar May 15 '17 18:05 RyanMcDonald

@justinweiss I managed to test using the upgraded resque-scheduler version. The hooks are running now, but the assertions are failing. I can't seem to do a simple assert_queued_in.

RyanMcDonald avatar May 15 '17 23:05 RyanMcDonald

Huh, that's strange. I'll have to dig into it a little more once I have a spare few minutes.

justinweiss avatar May 19 '17 02:05 justinweiss