-
-
Notifications
You must be signed in to change notification settings - Fork 156
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
Get access to ember store from moduleFor("controller:activity") #70
Comments
You might need to pass |
@gogogarrett I've been using |
we need a integration testing mode. |
Is there any way use "store" in controller and then tested id without use store = App.container.lookup('store:main') ? where ctrl.get('store') is not undefined |
You can pass a store mock or instance to subject |
Yes, I solved this by creating
And it works just fine. |
@isenbeqiri not sure how your solution applies to the OP's issue? |
@stefanpenner this could probably be closed in favour of https://github.com/rwjblue/ember-qunit/issues/108. |
I'm trying to get a hold of the store instance to .createRecord('activity', {id: '1_1'}) inside my test, but I can't seem to make it happen. Anyone have any ideas?
I've tried a few different things here
I managed to get a
store
class, but it's not working as I would like by doing something like..but even this doesn't create the activity record as desired.
The text was updated successfully, but these errors were encountered: