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
Need a test for "redis://... #971
Comments
|
Stub |
|
That might work, but also feels super hacky. Hm. I guess that'd be okay. Feel like submitting a patch? |
|
Agree it's a bit hacky... Other thought was setting |
|
I feel like I tried that and it didn't work for some other reason. |
|
Slightly less hacky would be to stub Heh, just saw your tweet and thought it would be fun to have a look. |
I also think this is the best solution. |
|
Shooting from the hip here ... Asserting |
|
Right, I think even there were issues. Don't remember. On Sun, Apr 28, 2013 at 8:45 AM, David Biehl notifications@github.com
|
|
Taking a step back, if the |
|
There is a test for this method in this commit. Not sure if this is what you had in mind though. |
|
It is! |
Coveralls shows that we have no test for building something with "redis:// https://coveralls.io/builds/24478/source?filename=lib%2Fresque%2Fconfig.rb
So I tried to write a test:
This doesn't go well. If we make this line return nil, then the test still passes, because of https://github.com/resque/redis-namespace/blob/master/lib/redis/namespace.rb#L192 in redis-namespace
Tl;DR: I don't know how to write a good test for this.
The text was updated successfully, but these errors were encountered: