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

create_resource :location match should use root_uri #1

Open
mheffner opened this issue Jun 13, 2011 · 1 comment
Open

create_resource :location match should use root_uri #1

mheffner opened this issue Jun 13, 2011 · 1 comment

Comments

@mheffner
Copy link
Collaborator

It would be handy to DRY out tests by using the root_uri as a prefix in the :location check to create_resource. Maybe if the @rack_test_rest[:location] did not start with a forward slash then the root_uri could be prefixed to the :location regexp before testing a match?

@mheffner
Copy link
Collaborator Author

I guess it would technically be: root_uri + / + resource + / + location.

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

1 participant