-
-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Cannot override :type of specs in spec/routing in order to test external redirect scenarios #801
Comments
I'm guessing the |
Yes, I worked around by putting it in |
Well I also feel you should be able to specify the type metadata regardless of any auto setup happening behind the scenes. A caveat could also be added to the documentation, but that's actually a Rails issue too (as it's there test helpers in use) |
Docs welcomed as a PR, but I'm going to close this issue as I think everything is technically performing correctly. |
Would you like me to update the README and send a pull request? |
Sure! |
@alindeman are we concerned at all by the fact that the magic overrides manually set |
FWIW, I'd advocate moving away from the auto-assignment of |
Keeping with the rails way, it would be great if by default |
Looks great, and thanks! |
I have a route that does an external redirect, which I want to test like,
There is apparently no standard way to test for redirects (see http://stackoverflow.com/questions/10842448/do-routing-specs-support-redirect-routes-rspec), which is why I am trying to use a request spec for this.
However, I'm unable to override the :type of my spec like,
This looks like a bug.
The text was updated successfully, but these errors were encountered: