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

Add missing options verbify to Pretender prototype. #166

Merged
merged 2 commits into from
Sep 16, 2016

Conversation

riklaunim
Copy link
Contributor

This seems to be missing and is required to fake an OPTIONS request in ember-cli-mirage.

@samselikoff
Copy link
Contributor

samselikoff commented Sep 3, 2016

If this is true it seems like we could use a handler_test.js test module that end-to-end tests all the supported verbs, because OPTIONS support was supposed to be in since 61c8f28.

Would you mind adding that module (with a test that fails the current codebase for OPTIONS)?

@riklaunim
Copy link
Contributor Author

I'll check it. The code for OPTIONS do exist but it wasn't exposed like others on the Pretender prototype.

@riklaunim
Copy link
Contributor Author

Added some tests. The options call will fail if the options line is not added to Pretender.

@samselikoff
Copy link
Contributor

@trek This looks good to merge, just wanted your eyes on it to make sure

@trek trek merged commit 2ccf321 into pretenderjs:master Sep 16, 2016
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

Successfully merging this pull request may close these issues.

3 participants