Skip to content

Instantly share code, notes, and snippets.

@mrloop
Created May 13, 2015 13:27
Show Gist options
  • Select an option

  • Save mrloop/786b98651766d153484b to your computer and use it in GitHub Desktop.

Select an option

Save mrloop/786b98651766d153484b to your computer and use it in GitHub Desktop.
Set adapter during test run.
...
Ember.run(function() {
application = Application.create(attributes);
application.register('adapter:application', Adapter);
var store = DS.Store.extend({adapter: Adapter});
application.register('store:main', store);
application.setupForTesting();
application.injectTestHelpers();
});
...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment