-
Notifications
You must be signed in to change notification settings - Fork 85
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
Enqueue_at works in RSpec but not Cucumber step #103
Comments
Hi @noreaster, No idea. Here are some suggestions: The error message makes me think that you are running in a different environment. Do you have any invocations of Another cause may be due to the A failing example would be great. |
I've tried putting the requires inside and outside of the prefork and it doesn't make a difference. It is loading up the resque-scheduler rather than resque_spec for enqueue_at. However it does load up resque_spec for enqueue. I'll try to boil down the issue into a separate example instance and post it when I sort that out. |
Here's an instance of how I had it set up. https://github.com/noreaster/resque_spec_example The examples are: I was using guard to test if that makes a difference |
Hi @noreaster, Thanks for the example, the only thing I can suggest is to move the |
No worries, unfortunately that doesn't seem to solve the issue. It's probably a configuration issue, but I just don't know where it would be. |
Hi @noreaster, That last message was confusing :) — you are still having the problem? |
Whoops, learning how to type is important. I meant that it's still a problem |
I'm not quite sure what I'm doing wrong. I can get enqueue_at to work in RSpec, but not cucumber.
Resque.enqueue works properly in cucumber (and RSpec) but I always get "Invalid argument - connect(2) (Errno::EINVAL)" when I try to run Resque.enqueue_at in cucumber
.env
phone_poll_steps.rb (doesn't work)
phone_poll_spec.rb (works)
Works in both
The text was updated successfully, but these errors were encountered: