Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ResqueScheduler Hooks Disabled #48

Open
RyanMcDonald opened this issue May 12, 2017 · 4 comments
Open

ResqueScheduler Hooks Disabled #48

RyanMcDonald opened this issue May 12, 2017 · 4 comments

Comments

@RyanMcDonald
Copy link

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

@justinweiss
Copy link
Owner

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.

@RyanMcDonald
Copy link
Author

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
Copy link
Author

@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.

@justinweiss
Copy link
Owner

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants