Skip to content
This repository has been archived by the owner on Apr 2, 2020. It is now read-only.

res.locals.routes is not set in controller actions #29

Closed
charlierudolph opened this issue Feb 6, 2015 · 1 comment
Closed

res.locals.routes is not set in controller actions #29

charlierudolph opened this issue Feb 6, 2015 · 1 comment

Comments

@charlierudolph
Copy link
Collaborator

It appears the middleware that sets res.locals.routes isn't called until after exprestive calls the controller action. Thats why the feature tests passes but this fails in production.

@alexdavid
Copy link
Owner

Thanks for catching this, I've fixed it for now but I can't think of an elegant way of testing this in the feature tests. I'll look more into ways we can refactor our reverse_routing tests to catch this in the future.

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

No branches or pull requests

2 participants