-
-
Notifications
You must be signed in to change notification settings - Fork 137
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
Any way to configure a api namespace for FactoryGuyTestMixin? #16
Comments
@taboularasa .. I am on internet free vacation for another few days .. will get to back to you on monday :) |
@taboularasa .. good idea .. will get this out soon. |
@danielspaniel awesome thanks, let me know if I can help at all |
@taboularasa .. version 0.5.3 fixes this issue by using the underlying RESTAdapter to build the URL .. which I should have been doing in the first place ( so thanks for pointing this out ) |
👏 |
I've added a namepace to my RESTAdapter:
FactoryGuyTestMixin request handlers ( e.g. FactoryGuyTestMixin#handleFind ) construct a url that's inferred from the name of the factory:
https://github.com/danielspaniel/ember-data-factory-guy/blob/c22a7c4bf459ba8c49e1be15afc520d66d95992b/src/factory_guy_test_mixin.js#L127
Would it be reasonable to add a configuration setting to FactoryGuyTestMixin for a base url and then prepend that to the url while building the mockjax request here?:
https://github.com/danielspaniel/ember-data-factory-guy/blob/c22a7c4bf459ba8c49e1be15afc520d66d95992b/src/factory_guy_test_mixin.js#L69
The text was updated successfully, but these errors were encountered: