How can I replace “application: adapter” with “DS.FixtureAdapter” in my acceptance tests?

We use Ember data and have it RestAdapter, but we do not want to use it in our tests. How can I replace application:adapterwith DS.FixtureAdapterin my acceptance tests?

+3
source share
1 answer

You can re-register it in the container.

App.__container__.register('adapter:application', DS.FixtureAdapter);

And depending on how you run your tests, you can insert directly into the application namespace if you call App.reset().

App.ApplicationAdapter = DS.FixtureAdapter;
0
source

All Articles